-
Notifications
You must be signed in to change notification settings - Fork 83
/
.travis.yml
87 lines (81 loc) · 1.86 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
language: cpp
cache: ccache
sudo: required
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- clang-3.8
- build-essential
- pkg-config
- cmake
- libsuitesparse-dev
# before_install:
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PATH="/usr/local/opt/ccache/libexec:$PATH" ; fi
# We first do the compile stage specified below, then the matrix expansion specified after.
stages:
- compile
# Compile stage without building examples/tests to populate the caches.
jobs:
include:
# on Mac, GCC
# - stage: compile
# os: osx
# compiler: gcc
# env: CMAKE_BUILD_TYPE=Debug
# script: bash .travis.sh -b
# - stage: compile
# os: osx
# compiler: gcc
# env: CMAKE_BUILD_TYPE=Release
# script: bash .travis.sh -b
# on Mac, CLANG
# - stage: compile
# os: osx
# compiler: clang
# env: CMAKE_BUILD_TYPE=Debug
# script: bash .travis.sh -b
# - stage: compile
# os: osx
# compiler: clang
# env: CMAKE_BUILD_TYPE=Release
# script: bash .travis.sh -b
# on Linux, GCC
- stage: compile
os: linux
compiler: gcc
env: CMAKE_BUILD_TYPE=Debug
script: bash .travis.sh -b
- stage: compile
os: linux
compiler: gcc
env: CMAKE_BUILD_TYPE=Release
script: bash .travis.sh -b
# on Linux, CLANG
# - stage: compile
# os: linux
# compiler: clang
# env: CMAKE_BUILD_TYPE=Debug
# script: bash .travis.sh -b
# - stage: compile
# os: linux
# compiler: clang
# env: CMAKE_BUILD_TYPE=Release
# script: bash .travis.sh -b
# Matrix configuration:
os:
# - osx
- linux
compiler:
- gcc
# - clang
env:
global:
- MAKEFLAGS="-j2"
- CCACHE_SLOPPINESS=pch_defines,time_macros