forked from digraphs/Digraphs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
110 lines (93 loc) · 2.46 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
dist:
xenial
language:
c
compiler:
gcc
env:
global:
- DIGRAPHS_LIB=digraphs-lib-0.5
- SETUP=travis
# GAP version: | master | stb-4.11 | stb-4.10 | stb-4.9 | required |
# ---------------+--------------+----------+----------+---------+----------+
# pkgs: latest | 64- & 32-bit | 32-bit | - | - | - |
# pkgs: required | coverage-64 | 64-conda | 64-bit | 32-bit | 64--bit |
matrix:
include:
- env:
- SUITE=lint
- env:
- SUITE=test
- ABI=64
- GAP=master
- PACKAGES=latest
- env:
- SUITE=test
- ABI=32
- GAP=master
- PACKAGES=latest
addons:
apt_packages:
- g++-multilib
- env:
- SUITE=test
- ABI=32
- GAP=stable-4.11
- PACKAGES=latest
addons:
apt_packages:
- g++-multilib
- env:
- SUITE=test
- ABI=64
- GAP=stable-4.11
- PACKAGES=required
- EXTRA_PKG_FLAGS="--with-external-planarity --with-external-bliss"
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/miniconda3/lib
- CFLAGS="$CFLAGS -I$HOME/miniconda3/include -O2 -g"
- LDFLAGS="$LDFLAGS -L$HOME/miniconda3/lib"
- env:
- SUITE=test
- ABI=64
- GAP=stable-4.10
- PACKAGES=required
- env:
- SUITE=test
- ABI=32
- GAP=stable-4.9
- PACKAGES=required
addons:
apt_packages:
- g++-multilib
- env:
- SUITE=test
- ABI=64
- GAP=required
- PACKAGES=required
- env:
- SUITE=coverage
- ABI=64
- GAP=master
- PACKAGES=required
- THRESHOLD=98
before_install:
- if [ ! -z "$EXTRA_PKG_FLAGS" ]; then
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
chmod +x miniconda.sh;
./miniconda.sh -b;
export PATH=/home/travis/miniconda3/bin:$PATH;
conda update --yes conda;
conda config --add channels conda-forge;
conda install --yes planarity bliss readline;
fi;
install:
# GAP and some packages require special flags for compilation in 32-bit mode
- if [ "$ABI" == "32" ]; then
export GAP_FLAGS="ABI=32 --host=i686-linux-gnu";
export PKG_FLAGS="CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32 LOPTS=-m32 --host=i686-linux-gnu";
fi;
before_script:
- export GAPROOT="$HOME/gap"
- scripts/travis-build-dependencies.sh
script:
- scripts/travis-build-digraphs.sh && scripts/travis-test.sh