forked from PacificBiosciences/pbbam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (47 loc) · 1.52 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: cpp
compiler:
- gcc
before_install:
# Travis's default installs of gcc, boost, & cmake currently lag behind the minimums we need.
# So we need to manually setup them up.
#
# - gcc 4.8 (current default on Travis is 4.7, which is no good for C++11 work)
# - boost 1.55
# - cmake 3.x
# add external repos
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test # gcc
- sudo add-apt-repository -y ppa:boost-latest/ppa # boost
- sudo add-apt-repository -y ppa:george-edison55/precise-backports # cmake
# remove existing cmake install
- sudo apt-get remove -qq cmake cmake-data
- sudo apt-get autoremove -qq
# update apt
- sudo apt-get update -y -qq
# install
- sudo apt-get install -y -qq g++-4.8 boost1.55 cmake-data cmake
# make sure we're using new gcc tools
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.8 90
# prep zlib
- sudo apt-get install -y -qq zlib1g-dev
# prep GoogleTest
- sudo apt-get install -y -qq libgtest-dev
before_script:
# run cmake
- mkdir build
- cd build
- cmake .. -DGTEST_SRC_DIR=/usr/src/gtest -DCMAKE_BUILD_TYPE=Debug
script:
# build & test
- make -j 3
- make test
branches:
only:
- master
notifications:
recipients:
- dbarnett@pacb.com
email:
on_success: change
on_failure: always