forked from stan-dev/stan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
121 lines (112 loc) · 3.86 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
language: cpp
sudo: false
before_script:
- eval "${MATRIX_EVAL}"
- echo ${CXX}
- ${CXX} --version
- echo "CXX=$CXX" > make/local
- echo "CXXFLAGS_OS+=$CXXFLAGS_OS" >> make/local
- if [[ ! -z "$DEPFLAGS_OS" ]]; then echo "DEPFLAGS_OS=$DEPFLAGS_OS" >> make/local; fi
- cat make/local
linux_clang: &linux_clang
os: linux
compiler: "clang-3.8"
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8' ]
packages: [ 'clang-3.8', 'libc++-dev' ]
linux_gcc: &linux_gcc
os: linux
compiler: "gcc-4.9"
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'g++-4.9' ]
before_install: make math-revert
matrix:
fast_finish: true
include:
- <<: *linux_clang
env:
# For Travis's Ubuntu 14.04, the libstdc++ is broken with clang
- MATRIX_EVAL="CXX=clang++-3.8 && CXXFLAGS_OS=-stdlib=libc++"
TESTFOLDER="src/test/unit/callbacks src/test/unit/io"
PARALLEL=2
- <<: *linux_clang
env:
- MATRIX_EVAL="CXX=clang++-3.8 && CXXFLAGS_OS=-stdlib=libc++"
TESTFOLDER="src/test/unit/lang/ast"
PARALLEL=2
- <<: *linux_clang
env:
- MATRIX_EVAL="CXX=clang++-3.8 && CXXFLAGS_OS=-stdlib=libc++"
TESTFOLDER="src/test/unit/lang/generator"
PARALLEL=2
- <<: *linux_clang
env:
- MATRIX_EVAL="CXX=clang++-3.8 && CXXFLAGS_OS=-stdlib=libc++"
TESTFOLDER="src/test/unit/lang/parser"
PARALLEL=2
- <<: *linux_clang
env:
- MATRIX_EVAL="CXX=clang++-3.8 && CXXFLAGS_OS=-stdlib=libc++"
TESTFOLDER="src/test/unit/lang/reject"
PARALLEL=2
- <<: *linux_clang
env:
- MATRIX_EVAL="CXX=clang++-3.8 && CXXFLAGS_OS=-stdlib=libc++"
TESTFOLDER="src/test/unit/mcmc src/test/unit/model src/test/unit/optimization"
PARALLEL=2
- <<: *linux_clang
env:
- MATRIX_EVAL="CXX=clang++-3.8 && CXXFLAGS_OS=-stdlib=libc++"
TESTFOLDER="src/test/unit/services src/test/unit/variational src/test/unit/version_test.cpp"
PARALLEL=2
- <<: *linux_gcc
env:
- MATRIX_EVAL="CXX=g++-4.9 && CXXFLAGS_OS=-pthread && DEPFLAGS_OS='-M -E'"
TESTFOLDER="src/test/unit/callbacks src/test/unit/io"
PARALLEL=1
- <<: *linux_gcc
env:
- MATRIX_EVAL="CXX=g++-4.9 && CXXFLAGS_OS=-pthread && DEPFLAGS_OS='-M -E'"
TESTFOLDER="src/test/unit/lang/*.cpp"
PARALLEL=1
- <<: *linux_gcc
env:
- MATRIX_EVAL="CXX=g++-4.9 && CXXFLAGS_OS=-pthread && DEPFLAGS_OS='-M -E'"
TESTFOLDER="src/test/unit/lang/ast"
PARALLEL=1
- <<: *linux_gcc
env:
- MATRIX_EVAL="CXX=g++-4.9 && CXXFLAGS_OS=-pthread && DEPFLAGS_OS='-M -E'"
TESTFOLDER="src/test/unit/lang/generator"
PARALLEL=1
- <<: *linux_gcc
env:
- MATRIX_EVAL="CXX=g++-4.9 && CXXFLAGS_OS=-pthread && DEPFLAGS_OS='-M -E'"
TESTFOLDER="src/test/unit/lang/parser"
PARALLEL=1
- <<: *linux_gcc
env:
- MATRIX_EVAL="CXX=g++-4.9 && CXXFLAGS_OS=-pthread && DEPFLAGS_OS='-M -E'"
TESTFOLDER="src/test/unit/lang/reject"
PARALLEL=1
- <<: *linux_gcc
env:
- MATRIX_EVAL="CXX=g++-4.9 && CXXFLAGS_OS=-pthread && DEPFLAGS_OS='-M -E'"
TESTFOLDER="src/test/unit/mcmc src/test/unit/model src/test/unit/optimization"
PARALLEL=1
- <<: *linux_gcc
env:
- MATRIX_EVAL="CXX=g++-4.9 && CXXFLAGS_OS=-pthread && DEPFLAGS_OS='-M -E'"
TESTFOLDER="src/test/unit/services src/test/unit/version_test.cpp"
PARALLEL=1
- <<: *linux_gcc
env:
- MATRIX_EVAL="CXX=g++-4.9 && CXXFLAGS_OS=-pthread && DEPFLAGS_OS='-M -E'"
TESTFOLDER="src/test/unit/variational"
PARALLEL=1
script: ./runTests.py -j$PARALLEL $TESTFOLDER
sudo: false
dist: trusty