-
Notifications
You must be signed in to change notification settings - Fork 52
/
.travis.yml
56 lines (50 loc) · 1.54 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
language: cpp
matrix:
include:
- os: linux
sudo: required
compiler: gcc
env: PYTHON=NO
- os: linux
sudo: required
compiler: gcc
env: COMPILER=GCC5 PYTHON=YES
- os: linux
sudo: required
compiler: gcc
env: COMPILER=GCC6 PYTHON=YES
- os: linux
sudo: required
compiler: gcc
env: COMPILER=GCC7 PYTHON=YES
- os: osx
compiler: clang
env: PYTHON=YES
# safelist
branches:
only:
- master
- develop
# Install dependencies: compilers, autotools, python
install:
- ./.travis/install.sh
before_script:
# Build boost: comes with KAT but has a non-autotools build system so must be created separately
- ./build_boost.sh
# Generate KAT and Jellyfish configration scripts
- ./autogen.sh
script:
# Sanity check to make sure we have the correct compiler (on linux)
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then gcc --version; fi
# Make sure python's available at runtime (if necessary) and then build KAT and run tests
- if [[ "$PYTHON" == "YES" ]]; then
export PATH="$HOME/miniconda/bin:$PATH" && source activate test-environment && ./configure --with-sse;
else
./configure --with-sse --disable-pykat;
fi
# Build KAT
- make V=1
# Only run tests on linux. The tests will likely fail on Mac. For now at least.
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
make V=1 check; cat tests/test-suite.log;
fi