-
Notifications
You must be signed in to change notification settings - Fork 45
/
.travis.yml
45 lines (37 loc) · 1.26 KB
/
.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
37
38
39
40
41
42
43
44
45
#whitelist
branches:
only:
- master
- develop
- feature/fastio
language: cpp
compiler: gcc
before_install:
- echo "yes" | sudo apt-add-repository ppa:boost-latest
- echo "yes" | sudo apt-add-repository ppa:mapnik/boost-backports-1-54
#- echo "yes" | sudo apt-add-repository ppa:ubuntu-toolchain-r/test
- echo "yes" | sudo apt-add-repository ppa:h-rayflood/gcc-upper
- sudo apt-get clean -qq
- sudo apt-get update -qq
#- sudo apt-get install -qq gcc-4.9 g++-4.9 liblzma-dev libbz2-dev
- sudo apt-get install -qq gcc-4.9 g++-4.9
- export CC="gcc-4.9"
- export CXX="gcc-4.9"
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 50
#- sudo apt-get install -qq libboost1.55-all-dev
install:
- export CXX="g++-4.9"
- export CC="gcc-4.9"
script:
- mkdir build
- cd build
- cmake -DFETCH_BOOST=TRUE -DNO_RTM=TRUE ..
- travis_wait 45 make
- travis_wait make install
- travis_wait make test VERBOSE=1
after_success:
- cd $TRAVIS_BUILD_DIR
- ./scripts/push-binary.sh
after_failure:
- cat $TRAVIS_BUILD_DIR/build/Testing/Temporary/LastTest.log