From 522ec4fc2ec6124db8bfc22ff30e90c7d0f516ff Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Thu, 13 Apr 2017 11:25:01 +0000 Subject: [PATCH] Restructure travis build --- .travis.yml | 28 ++++++++++++++-------------- scripts/install_node.sh | 18 ------------------ 2 files changed, 14 insertions(+), 32 deletions(-) delete mode 100644 scripts/install_node.sh diff --git a/.travis.yml b/.travis.yml index a74294903..50b2ad9ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,6 +38,7 @@ env: - CCACHE_VERSION=3.3.1 - CMAKE_VERSION=3.7.2 - MASON="$(pwd)/scripts/mason.sh" + - ENABLE_NODE_BINDINGS=On - NODE="4" matrix: @@ -48,12 +49,14 @@ matrix: # Debug Builds - os: linux - compiler: "gcc-6-debug" + compiler: "gcc-6-debug-cov-asan" addons: &gcc6 apt: sources: ['ubuntu-toolchain-r-test'] 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'] env: CCOMPILER='gcc-6' CXXCOMPILER='g++-6' BUILD_TYPE='Debug' TARGET_ARCH='x86_64-asan' ENABLE_COVERAGE=ON ENABLE_SANITIZER=ON + after_success: + - bash <(curl -s https://codecov.io/bash) - os: linux compiler: "clang-4.0-debug" @@ -64,12 +67,12 @@ matrix: env: CLANG_VERSION='4.0.0' BUILD_TYPE='Debug' CUCUMBER_TIMEOUT=60000 - os: linux - compiler: "mason-linux-debug-santize" + compiler: "mason-linux-debug-asan" addons: apt: sources: ['ubuntu-toolchain-r-test'] packages: ['libstdc++-5-dev'] - env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON ENABLE_SANITIZER=ON ENABLE_NODE_BINDINGS=ON + env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON ENABLE_SANITIZER=ON # Release Builds - os: linux @@ -78,7 +81,7 @@ matrix: apt: sources: ['ubuntu-toolchain-r-test'] packages: ['libstdc++-5-dev'] - env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON RUN_CLANG_FORMAT=ON ENABLE_LTO=ON ENABLE_NODE_BINDINGS=ON + env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON RUN_CLANG_FORMAT=ON ENABLE_LTO=ON - os: linux compiler: "gcc-6-release" @@ -107,6 +110,8 @@ matrix: compiler: "mason-osx-release" # we use the xcode provides clang and don't install our own env: ENABLE_MASON=ON BUILD_TYPE='Release' CUCUMBER_TIMEOUT=60000 CCOMPILER='clang' CXXCOMPILER='clang++' ENABLE_ASSERTIONS=ON ENABLE_LTO=ON + after_success: + - ./scripts/travis/publish.sh # Disabled because of CI slowness #- os: linux @@ -143,7 +148,7 @@ matrix: apt: sources: ['ubuntu-toolchain-r-test'] packages: ['libstdc++-5-dev'] - 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 + env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON ENABLE_LTO=ON PUBLISH_NODE_BINDINGS=On JOBS=3 install: - pushd ${OSRM_BUILD_DIR} - | @@ -166,7 +171,7 @@ matrix: apt: sources: ['ubuntu-toolchain-r-test'] packages: ['libstdc++-5-dev'] - 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 + env: CLANG_VERSION='4.0.0' BUILD_TYPE='Debug' ENABLE_MASON=ON ENABLE_LTO=ON PUBLISH_NODE_BINDINGS=On JOBS=3 install: - pushd ${OSRM_BUILD_DIR} - | @@ -189,7 +194,7 @@ matrix: apt: sources: ['ubuntu-toolchain-r-test'] packages: ['libstdc++-5-dev'] - 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" + env: CLANG_VERSION='4.0.0' BUILD_TYPE='Release' ENABLE_MASON=ON ENABLE_LTO=ON PUBLISH_NODE_BINDINGS=On JOBS=3 NODE="6" install: - pushd ${OSRM_BUILD_DIR} - | @@ -212,7 +217,7 @@ matrix: apt: sources: ['ubuntu-toolchain-r-test'] packages: ['libstdc++-5-dev'] - 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" + env: CLANG_VERSION='4.0.0' BUILD_TYPE='Debug' ENABLE_MASON=ON ENABLE_LTO=ON PUBLISH_NODE_BINDINGS=On JOBS=3 NODE="6" install: - pushd ${OSRM_BUILD_DIR} - | @@ -334,14 +339,9 @@ script: - ./unit_tests/server-tests - ./unit_tests/partition-tests - | - if [ -n "${ENABLE_NODE_BINDINGS}" ] && [ -z "${ENABLE_SANITIZER}" ]; then + if [ -z "${ENABLE_SANITIZER}" ]; then npm run nodejs-tests fi - popd - yarn test -after_success: - - | - if [ -n "${ENABLE_COVERAGE}" ]; then - bash <(curl -s https://codecov.io/bash) - fi diff --git a/scripts/install_node.sh b/scripts/install_node.sh deleted file mode 100644 index 7c7e15077..000000000 --- a/scripts/install_node.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -NODE_HOME=$HOME/node -export NODE_HOME -mkdir ${NODE_HOME} -if [ "${TRAVIS_OS_NAME}" == "osx" ]; then - curl https://s3.amazonaws.com/mapbox/apps/install-node/v2.0.0/run | NV=4.4.2 NP=darwin-x64 OD=${NODE_HOME} sh -else - curl https://s3.amazonaws.com/mapbox/apps/install-node/v2.0.0/run | NV=4.4.2 NP=linux-x64 OD=${NODE_HOME} sh -fi - -PATH="${NODE_HOME}/bin:$PATH" -export PATH -node --version -npm --version -which node - -