forked from erickschulz/NPDECODES
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (75 loc) · 1.88 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
language: cpp
dist: xenial
env:
global:
- HUNTER_ROOT="${TRAVIS_BUILD_DIR}/hunter"
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
cache:
directories:
- "$TRAVIS_BUILD_DIR/deps"
- "$TRAVIS_BUILD_DIR/hunter"
branches:
stages:
- clang-format
- compile_dependencies # compile the hunter dependencies, i.e. configure the cmake project
- compile_test
jobs:
include:
- stage: clang-format
os: linux
addons:
apt:
update: true
sources:
- llvm-toolchain-xenial-8
- ubuntu-toolchain-r-test
packages:
- clang-format-8
script: "./scripts/ci/run-clang-format.py -r --clang-format-executable clang-format-8
--color always ./developers/"
- stage: compile_dependencies
os: linux
compiler: gcc
env:
- COMPILER='g++-7'
- BUILD_TYPE='Debug'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
script: "./scripts/ci/run_cmake.sh"
- stage: compile_test
os: linux
compiler: gcc
env:
- COMPILER='g++-7'
- BUILD_TYPE='Debug'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
script:
- ./scripts/ci/run_cmake.sh
- cd Build/developers
- make -j${NUM_PROC:-2}
- make test_developers_mastersolution
- stage: compile_dependencies
os: osx
osx_image: xcode10.2
compiler: clang
env: COMPILER='clang++' BUILD_TYPE='Debug'
script: "./scripts/ci/run_cmake.sh"
- stage: compile_test
os: osx
osx_image: xcode10.2
compiler: clang
env: COMPILER='clang++' BUILD_TYPE='Debug'
script:
- "./scripts/ci/run_cmake.sh"
- cd Build/developers
- make -j${NUM_PROC:-2}
- make test_developers_mastersolution