forked from FidoProject/Fido
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (26 loc) · 807 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
36
sudo: true
language: cpp
compiler: gcc
env:
- TEST="unit"
before_install:
# Valgrind
- if [[ "$TEST" == "valgrind" ]]; then sudo apt-get install valgrind; fi
# g++4.8.1
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
install:
- sudo apt-get install -qq g++-4.8
- sudo apt-get install -qq libstdc++6-4.7-dev
- export CXXFLAGS="-std=c++0x"
- export CXX="g++-4.8"
script:
# Build
- cd ~/build/FidoProject/Fido
- make && sudo make install
# Run Unit Tests
- if [[ "$TEST" == "unit" ]]; then sudo ./runtests.sh; fi
# Run Valgrind on unit tests
- if [[ "$TEST" == "valgrind" ]]; then cd tests/; make; mkdir -p temp; valgrind --leak-check=full --error-exitcode=1 ./tests.o; fi
notifications:
slack: frclions:LE3sAtc8YdaDewbnX0Kt1u47