-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
68 lines (64 loc) · 1.69 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
sudo: required
dist: trusty
notifications:
email: false
# Enable C support
language: c
matrix:
include:
- os: linux
compiler: clang-3.8
env: CXX_COMPILER="clang++-3.8" C_COMPILER="clang-3.8"
addons:
apt:
sources:
- sourceline: "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.8 main"
key_url: "http://apt.llvm.org/llvm-snapshot.gpg.key"
packages:
- clang-3.8
- libopenblas-dev
- os: linux
compiler: clang-3.9
env: CXX_COMPILER="clang++-3.9" C_COMPILER="clang-3.9"
addons:
apt:
sources:
- sourceline: "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main"
key_url: "http://apt.llvm.org/llvm-snapshot.gpg.key"
packages:
- clang-3.9
- libopenblas-dev
- os: linux
compiler: gcc-5
env: CXX_COMPILER="g++-5" C_COMPILER="gcc-5"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- libopenblas-dev
- os: linux
compiler: gcc-6
env: CXX_COMPILER="g++-6" C_COMPILER="gcc-6"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-6
- g++-6
- libopenblas-dev
# Build steps
script:
- cd build
- mkdir debug
- mkdir release
- export CXX="$CXX_COMPILER"
- export CC="$C_COMPILER"
- cd debug && cmake -DCMAKE_BUILD_TYPE=Debug ../.. && make -j4
- cd ../release && cmake -DCMAKE_BUILD_TYPE=Release ../.. && make -j4
- cd ../../bin/release
- ./cfeap --help
- ./test-cfeap