-
Notifications
You must be signed in to change notification settings - Fork 99
/
.travis.yml
56 lines (53 loc) · 1.43 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
language: generic
matrix:
include:
# clang-format specific job
- os: linux
sudo: false
env: CLANG_FORMAT
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'libstdc++6', 'libstdc++-5-dev' ]
script:
- make format
- os: linux
sudo: false
env: CXX=g++-5
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'g++-5' ]
- os: linux
sudo: false
env: CXX=clang++
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'libstdc++6', 'libstdc++-5-dev' ]
# disabled before fixing https://github.com/delfrrr/delaunator-cpp/issues/5
# - os: linux
# sudo: required # workaround https://github.com/mapbox/node-cpp-skel/issues/93
# env: CXXFLAGS="-fsanitize=address,undefined,integer -fno-sanitize-recover=all"
# addons:
# apt:
# sources: [ 'ubuntu-toolchain-r-test' ]
# packages: [ 'libstdc++6', 'libstdc++-5-dev' ]
env:
global:
- CMAKE_VERSION="3.8.2"
install:
# set up the environment by installing mason and clang++
- ./scripts/setup.sh --config local.env
# put mason and clang++ on PATH
- source local.env
- mason install cmake ${CMAKE_VERSION}
- mason link cmake ${CMAKE_VERSION}
- which cmake
script:
- make release
- make test
- make clean
- make debug
- make test
- make clean