forked from VROOM-Project/vroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
97 lines (87 loc) · 2.3 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
language: cpp
git:
quiet: true
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
sudo: required
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- libboost-all-dev
env: COMPILER=g++-6
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- libboost-all-dev
env: COMPILER=g++-7
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- libboost-all-dev
env: COMPILER=g++-8
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
- libboost-all-dev
- g++-7
env: COMPILER=clang++-5.0
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
packages:
- clang-6.0
- libboost-all-dev
- g++-7
env: COMPILER=clang++-6.0
before_script:
- export ROOT_FOLDER="$(pwd)"
- export BUILD_FOLDER="$(pwd)/src"
- cd ${BUILD_FOLDER}
- export CXX=${COMPILER}
- ${CXX} --version
script:
- CHANGED_FILES=`git diff --name-only master ${TRAVIS_COMMIT}`
# Check build without libosrm only if source files have been
# modified.
- if echo ${CHANGED_FILES} | grep -v -e "\.h" -e "\.cpp"; then travis_terminate 0; fi
- make
# Check build with libosrm installed only on master and if relevant
# files have been modified.
- if [ "$TRAVIS_PULL_REQUEST" != "false" ] && echo ${CHANGED_FILES} | grep -v "libosrm_wrapper"; then travis_terminate 0; fi
- make clean
- cd ${ROOT_FOLDER}
- sudo apt-get install build-essential wget cmake3 pkg-config libbz2-dev libstxxl-dev libstxxl1 libxml2-dev libzip-dev lua5.2 liblua5.2-dev libtbb-dev
- git clone https://github.com/Project-OSRM/osrm-backend.git
- cd osrm-backend
- git checkout v5.19.0
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release
- cmake --build .
- sudo cmake --build . --target install
- cd ${BUILD_FOLDER}
- make