forked from trillek-team/trillek-vcomputer-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (34 loc) · 1021 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
language: cpp
compiler: gcc
before_install:
# libstdc++-4.8-dev
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
# clang++-3.2 and gcc 4.8
- sudo add-apt-repository --yes ppa:h-rayflood/llvm
- sudo apt-get -qq update
install:
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- sudo apt-get install libgtest-dev
- BUILD_PATH=$(pwd)
- cd /usr/src/gtest
- sudo cmake CMakeLists.txt
- sudo make
- GTEST_ROOT=/usr/src/gtest
- export GTEST_ROOT
- cd $BUILD_PATH
# - sudo apt-get -y install automake libtool cmake
before_script:
- mkdir build
- cd build
- cmake ..
script:
- make
- ./unit_test
notifications:
email:
- luis.panadero@gmail.com
# I can also set up Glitch to output build results as well if we don't want the travis bot join/part spam
irc:
- "chat.freenode.net#project-trillek"
# - "chat.freenode.net#sigma-gcf"