-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
64 lines (56 loc) · 1.36 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
sudo: false
# dist: bionic
language: cpp
# branches:
# only:
# - master
env:
global:
- JOBS=4
- PROJECT_NAME="mapbox-base"
jobs:
- &syntax-check
stage: test
os: linux
language: cpp
name: Syntax Check
addons: &gcc6
apt:
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8' ]
packages: [ 'clang-3.8', 'clang-tidy' ]
script: scripts/ci/run-syntax-check.sh
- &license-check
state: test
os: linux
language: node_js
node_js:
- 10
name: License Check
script: scripts/check-license.sh
- &test
stage: test
os: linux
language: cpp
name: Test / gcc-6-release
cache:
ccache: true
apt: true
directories:
- test/cache
addons: &gcc6
apt:
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8' ]
packages: ['g++-6']
compiler: "gcc-6"
env: "CCOMPILER='gcc-6' CXXCOMPILER='g++-6' BUILD_TYPE='Release'"
install: scripts/ci/install-tests.sh
script: scripts/ci/run-tests.sh
- <<: *test
name: Test / gcc-6-debug
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.8' ]
packages: ['g++-6']
env: "CCOMPILER='gcc-6' CXXCOMPILER='g++-6' BUILD_TYPE='Debug'"
install: scripts/ci/install-tests.sh
script: scripts/ci/run-tests.sh