forked from dwinter/accuMUlate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (52 loc) · 1.25 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
language: cpp
sudo: false
matrix:
include:
- os: osx
osx_image: xcode9.1
compiler: clang
- os: linux
compiler: g++
- os: linux
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
- llvm-toolchain-precise-3.6
packages:
- gcc-4.9
- g++-4.9
- clang-3.6
- llvm-3.6
- libgtest-dev
env:
global:
- USE_CCACHE=1
before_install:
#debug travis errs
- ls -l $HOME
install:
#nope
before_script:
- ./travis_rebuild_cache.sh
- ls -l $HOME/build/
- ls -l $HOME/include/
- ls -l $HOME/lib/
script:
# - g++ --version
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" = "g++" ]; then export CXX="/usr/bin/g++-4.9" CC="gcc-4.9"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$CXX" = "clang++" ]; then export CXX="/usr/bin/clang++-3.6" CC="clang-3.6"; fi
# - $CXX --version
# - echo $CXX
# - which g++-4.9i
# - ccache -s
- mkdir -p build && cd build && cmake -DBOOST_INCLUDEDIR=${HOME}/include .. #-DBamtools_PREFIX=${HOME}/ ..
- make
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cd test && ./UnitTests; fi
cache:
directories:
- $HOME/lib/
- $HOME/include/
- $HOME/.ccache