forked from EarlhamInst/KAT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
53 lines (44 loc) · 1.37 KB
/
.travis.yml
File metadata and controls
53 lines (44 loc) · 1.37 KB
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
language: cpp
matrix:
include:
- os: linux
sudo: required
compiler: gcc
env: PLOT=none
- os: linux
sudo: required
compiler: gcc
env: PLOT=python
- os: linux
sudo: required
compiler: gcc
env: PLOT=gnuplot
- os: linux
sudo: required
compiler: gcc
env: COMPILER=GCC5 PLOT=python
- os: osx
compiler: clang
# safelist
branches:
only:
- master
- develop
# Setup compiler
before_install:
- ./.travis/before_install.sh
# Install dependencies: (Boost and python, and setup KAT)
install:
- ./.travis/install.sh
# Build KAT
- ./autogen.sh
# Make sure python's available at runtime (if necessary) and then build KAT and run tests
script:
- if [[ "$COMPILER" == "GCC5" ]]; then export CXX="g++-5" && export CC="gcc-5"; elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX="g++-4.9" && export CC="gcc-4.9"; fi
- if [[ "$PLOT" == "python" ]] || [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="$HOME/miniconda/bin:$PATH" && source activate test-environment && export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/miniconda/envs/test-environment/lib"; fi
- gcc --version
- g++ --version
- ./configure
- make V=1
- make V=1 check
#- make V=1 distcheck