Skip to content

Commit 522ec4f

Browse files
committed
Restructure travis build
1 parent 15dc589 commit 522ec4f

File tree

2 files changed

+14
-32
lines changed

2 files changed

+14
-32
lines changed

.travis.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ env:
3838
- CCACHE_VERSION=3.3.1
3939
- CMAKE_VERSION=3.7.2
4040
- MASON="$(pwd)/scripts/mason.sh"
41+
- ENABLE_NODE_BINDINGS=On
4142
- NODE="4"
4243

4344
matrix:
@@ -48,12 +49,14 @@ matrix:
4849

4950
# Debug Builds
5051
- os: linux
51-
compiler: "gcc-6-debug"
52+
compiler: "gcc-6-debug-cov-asan"
5253
addons: &gcc6
5354
apt:
5455
sources: ['ubuntu-toolchain-r-test']
5556
packages: ['g++-6', 'libbz2-dev', 'libstxxl-dev', 'libstxxl1', 'libxml2-dev', 'libzip-dev', 'lua5.1', 'liblua5.1-0-dev', 'libtbb-dev', 'libgdal-dev', 'libluabind-dev', 'libboost-all-dev']
5657
env: CCOMPILER='gcc-6' CXXCOMPILER='g++-6' BUILD_TYPE='Debug' TARGET_ARCH='x86_64-asan' ENABLE_COVERAGE=ON ENABLE_SANITIZER=ON
58+
after_success:
59+
- bash <(curl -s https://codecov.io/bash)
5760

5861
- os: linux
5962
compiler: "clang-4.0-debug"
@@ -64,12 +67,12 @@ matrix:
6467
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Debug' CUCUMBER_TIMEOUT=60000
6568

6669
- os: linux
67-
compiler: "mason-linux-debug-santize"
70+
compiler: "mason-linux-debug-asan"
6871
addons:
6972
apt:
7073
sources: ['ubuntu-toolchain-r-test']
7174
packages: ['libstdc++-5-dev']
72-
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON ENABLE_SANITIZER=ON ENABLE_NODE_BINDINGS=ON
75+
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON ENABLE_SANITIZER=ON
7376

7477
# Release Builds
7578
- os: linux
@@ -78,7 +81,7 @@ matrix:
7881
apt:
7982
sources: ['ubuntu-toolchain-r-test']
8083
packages: ['libstdc++-5-dev']
81-
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON RUN_CLANG_FORMAT=ON ENABLE_LTO=ON ENABLE_NODE_BINDINGS=ON
84+
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON RUN_CLANG_FORMAT=ON ENABLE_LTO=ON
8285

8386
- os: linux
8487
compiler: "gcc-6-release"
@@ -107,6 +110,8 @@ matrix:
107110
compiler: "mason-osx-release"
108111
# we use the xcode provides clang and don't install our own
109112
env: ENABLE_MASON=ON BUILD_TYPE='Release' CUCUMBER_TIMEOUT=60000 CCOMPILER='clang' CXXCOMPILER='clang++' ENABLE_ASSERTIONS=ON ENABLE_LTO=ON
113+
after_success:
114+
- ./scripts/travis/publish.sh
110115

111116
# Disabled because of CI slowness
112117
#- os: linux
@@ -143,7 +148,7 @@ matrix:
143148
apt:
144149
sources: ['ubuntu-toolchain-r-test']
145150
packages: ['libstdc++-5-dev']
146-
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON ENABLE_LTO=ON ENABLE_NODE_BINDINGS=ON PUBLISH_NODE_BINDINGS=On JOBS=3
151+
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON ENABLE_LTO=ON PUBLISH_NODE_BINDINGS=On JOBS=3
147152
install:
148153
- pushd ${OSRM_BUILD_DIR}
149154
- |
@@ -166,7 +171,7 @@ matrix:
166171
apt:
167172
sources: ['ubuntu-toolchain-r-test']
168173
packages: ['libstdc++-5-dev']
169-
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Debug' ENABLE_MASON=ON ENABLE_LTO=ON ENABLE_NODE_BINDINGS=ON PUBLISH_NODE_BINDINGS=On JOBS=3
174+
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Debug' ENABLE_MASON=ON ENABLE_LTO=ON PUBLISH_NODE_BINDINGS=On JOBS=3
170175
install:
171176
- pushd ${OSRM_BUILD_DIR}
172177
- |
@@ -189,7 +194,7 @@ matrix:
189194
apt:
190195
sources: ['ubuntu-toolchain-r-test']
191196
packages: ['libstdc++-5-dev']
192-
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON ENABLE_LTO=ON ENABLE_NODE_BINDINGS=ON PUBLISH_NODE_BINDINGS=On JOBS=3 NODE="6"
197+
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON ENABLE_LTO=ON PUBLISH_NODE_BINDINGS=On JOBS=3 NODE="6"
193198
install:
194199
- pushd ${OSRM_BUILD_DIR}
195200
- |
@@ -212,7 +217,7 @@ matrix:
212217
apt:
213218
sources: ['ubuntu-toolchain-r-test']
214219
packages: ['libstdc++-5-dev']
215-
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Debug' ENABLE_MASON=ON ENABLE_LTO=ON ENABLE_NODE_BINDINGS=ON PUBLISH_NODE_BINDINGS=On JOBS=3 NODE="6"
220+
env: CLANG_VERSION='4.0.0' BUILD_TYPE='Debug' ENABLE_MASON=ON ENABLE_LTO=ON PUBLISH_NODE_BINDINGS=On JOBS=3 NODE="6"
216221
install:
217222
- pushd ${OSRM_BUILD_DIR}
218223
- |
@@ -334,14 +339,9 @@ script:
334339
- ./unit_tests/server-tests
335340
- ./unit_tests/partition-tests
336341
- |
337-
if [ -n "${ENABLE_NODE_BINDINGS}" ] && [ -z "${ENABLE_SANITIZER}" ]; then
342+
if [ -z "${ENABLE_SANITIZER}" ]; then
338343
npm run nodejs-tests
339344
fi
340345
- popd
341346
- yarn test
342347

343-
after_success:
344-
- |
345-
if [ -n "${ENABLE_COVERAGE}" ]; then
346-
bash <(curl -s https://codecov.io/bash)
347-
fi

scripts/install_node.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)