-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
119 lines (111 loc) · 2.8 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
language: cpp
os: linux
dist: bionic
env:
global:
- PATH=/tmp/bin:/tmp/node_modules/.bin:$PATH
- CXXFLAGS="-Wpedantic -Wall -Wextra"
- JEGP_OPTIONS=-DJEGP_TEST=ON
- NODE_PATH=/tmp/node_modules:/tmp/node_modules/mathjax-node-cli/node_modules
jobs:
include:
- compiler: clang
env: JEGP_DOC=1
addons:
apt:
packages:
- latexmk
- texlive-latex-recommended
- texlive-latex-extra
- texlive-fonts-recommended
- texlive-generic-recommended
- lmodern
- os: osx
compiler: clang
- compiler: g++-8
addons:
apt:
packages:
- g++-8
- compiler: g++-9
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- g++-9
- compiler: g++-10
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- g++-10
- compiler: clang
- compiler: clang++-8
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main'
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
packages:
- clang-8
- libc++-8-dev
- libc++abi-8-dev
- compiler: clang++-9
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
packages:
- clang-9
- libc++-9-dev
- libc++abi-9-dev
- compiler: clang++-10
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main'
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
packages:
- clang-10
- libc++-10-dev
- libc++abi-10-dev
- compiler: clang++-11
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main'
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
packages:
- clang-11
- libc++-11-dev
- libc++abi-11-dev
allow_failures:
- compiler: clang++-11
before_script:
- if [ $CXX == clang++ ]; then CXXFLAGS="$CXXFLAGS -stdlib=libc++"; fi
- CXX=$TRAVIS_COMPILER
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then travis/install_cmake.sh 3.15.4; fi
- |
if [ -n "$JEGP_DOC" ]; then
JEGP_OPTIONS="$JEGP_OPTIONS -DJEGP_DOC_PDF=ON -DJEGP_DOC_HTML=Bare"
travis/meet_doc_prereq.sh
fi
script:
- cmake -E make_directory build
- cmake -E chdir build cmake .. $JEGP_OPTIONS
- cmake --build build -j 2
cache:
directories: $HOME/.stack
before_deploy: travis/postprocess_doc.sh
deploy:
provider: pages:git
edge: true
allow_empty_commit: false
local_dir: doc/jegp/
on:
condition: -n $JEGP_DOC
notifications:
email: false