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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
|
language: generic
sudo: false
git:
depth: 10
# don't re-build for tags so that [publish binary] is not re-run
# https://github.com/travis-ci/travis-ci/issues/1532
branches:
except:
- /^v[0-9]/
env:
global:
- JOBS: "8"
- secure: F42vcZEgWgCMDvQXlmyYmWwFo86fUjlJbsvXEwyliaMfasjCNsbmeILU61aScn8daiCGD+vRUaRlmv+XxUSS2G8FaoI8ZjwgMo2guMwthAQJ1ohTvf4bZI0JqVYKnnZpzhGPv2zD0DTdt31l30qn2GZnnGrF4yFpPU1HW2HcMuE=
- secure: WRWrn3KjCaevRo2htdvn26euALTZNCDtcSlQvtH6Bc7yLdhlH5apj+qSuWqlN59f1cprFH+5aQ2zmBkVmAV2DT4IbsfszMIR6k6EetuY6VOugo/qsPW2x/MQbpFgjCbl95bYty4eUH9Bcf70Pz/S+XVewABXHWikJiLUiZBbLyE=
- secure: "bvbvxQe4GXZoU1zxm6KylaUSuQuhUZKe1V4+iYM0Sde6hj6RtAUccCWT7mNacCe2I6uGVHHjVfd7wLovT5y7lyT5pzY3UtypxFwuvGxDHotH4hhTg4m8/7APdB4bf5YgBf5IC6pMUPpUloh6TsTIwYzEaJdp/52b31Qfx80FooqOGOrEqntiyvidWsdUmlrxWnpxCVndkZgwvD15Uc08DWyD8Hklor6cKW6d/3zVIFmy81uAvTQp5W5xXC47S/BYYIwz3GU0zx+CMWM1oFObSbkVMG3LXDurqyvzWf9+09ZtBlC2JW0AOt9atk7vnD115Ia1KaEWalMhb3AGwJx4M4hqonooWOx20NL5P0sqEUe94GBUwvvb295vFTbw9guSGYXL3cOeWTlh2Ol466vJUwBvfr4OQ6Qu401nb1sIIv4SoIT9xXSHbopoderRVQurrcl/wesR19hgzrQC9ytJ6QCS1xnnzKogflfMQDDayrCMwpiZ5gvMGheGNbAh661wL03YXiviMwG307+iwFk8zyw05g4nW5/v3S+OYq3QatUgk+ZDpX2JS2zX4D6Aj2QLzKtCrx9pNpngl8pN+drmac1nklUeQLANxyv8hQjJvs1a4utj7ed9CY7QEWkvfrUl7rZqXvzacKmGEWoTkZKru19pa0enLTThKQV6AOei3e4="
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++-5-dev
matrix:
include:
# Coverage
- os: osx
osx_image: xcode7
compiler: clang
env: NODE_VERSION="4" COVERAGE=true NPM_FLAGS="--debug" PUBLISHABLE=false # node abi 46
# Linux
- os: linux
compiler: clang
env: NODE_VERSION="6" PUBLISHABLE=true # node abi 48
- os: linux
compiler: clang
env: NODE_VERSION="5" PUBLISHABLE=true # node abi 47
- os: linux
compiler: clang
env: NODE_VERSION="4" PUBLISHABLE=true # node abi 46
- os: linux
compiler: clang
env: NODE_VERSION="4" NPM_FLAGS="--debug" PUBLISHABLE=true # node abi 46
- os: linux
compiler: clang
env: NODE_VERSION="0.10" NPM_FLAGS="--debug" PUBLISHABLE=true # node abi 11
- os: linux
compiler: clang
env: NODE_VERSION="0.10" PUBLISHABLE=true # node abi 11
# linux gcc5
- os: linux
compiler: gcc
env: NODE_VERSION="4" CXX="g++-5" PUBLISHABLE=false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++-5-dev
- g++-5
# OS X
- os: osx
osx_image: xcode7
compiler: clang
env: NODE_VERSION="6" PUBLISHABLE=true # node abi 48
- os: osx
osx_image: xcode7
compiler: clang
env: NODE_VERSION="5" PUBLISHABLE=true # node abi 47
- os: osx
osx_image: xcode7
compiler: clang
env: NODE_VERSION="4" PUBLISHABLE=true # node abi 46
- os: osx
osx_image: xcode7
compiler: clang
env: NODE_VERSION="4" NPM_FLAGS="--debug" PUBLISHABLE=true # node abi 46
- os: osx
osx_image: xcode7
compiler: clang
env: NODE_VERSION="0.10" NPM_FLAGS="--debug" PUBLISHABLE=true # node abi 11
- os: osx
osx_image: xcode7
compiler: clang
env: NODE_VERSION="0.10" PUBLISHABLE=true # node abi 11
before_install:
- scripts/validate_tag.sh
- export COVERAGE=${COVERAGE:-false}
- if [[ $(uname -s) == 'Linux' ]] && [[ ${CXX:-"notset"} == "notset" ]]; then
git clone --depth 1 https://github.com/mapbox/mason.git ./.mason;
export PATH=$(pwd)/.mason:${PATH};
mason install clang 3.8.0;
export PATH=$(mason prefix clang 3.8.0)/bin:${PATH};
export CXX=clang++-3.8;
export CC=clang-3.8;
export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python2.7/site-packages;
else
export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python/site-packages;
fi;
- source ./scripts/install_node.sh ${NODE_VERSION}
- export PATH=./node_modules/.bin/:$PATH
install:
- COMMIT_MESSAGE=$(git log --format=%B --no-merges -n 1 | tr -d '\n')
- echo ${COMMIT_MESSAGE}
- if [[ ${COVERAGE} == true ]]; then
if [[ $(uname -s) == 'Linux' ]]; then
PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user cpp-coveralls;
else
PYTHONUSERBASE=$(pwd)/mason_packages/.link easy_install --user cpp-coveralls;
fi;
./scripts/build_against_sdk.sh ${NPM_FLAGS};
else
./scripts/build_against_sdk.sh ${NPM_FLAGS};
fi
- node-pre-gyp package testpackage ${NPM_FLAGS}
- npm test
before_script:
- if [[ ${PUBLISHABLE} == true ]]; then
./scripts/publish.sh;
fi;
script:
- if [[ ${COVERAGE} == true ]]; then ./mason_packages/.link/bin/cpp-coveralls --exclude __nvm --exclude node_modules --exclude tests --build-root build --gcov-options '\-lp' --exclude tools --exclude docs --exclude sdk --exclude build/Debug/obj/gen --exclude build/Release/obj/gen --exclude src/mapnik_featureset.hpp --exclude src/mapnik_logger.hpp --exclude src/mapnik_image_view.hpp --exclude src/mapnik_geometry.hpp --exclude deps > /dev/null; fi;
#- node --expose-gc bench/error/test_vt_abort2.js
# ugh: always killed by travis
#- nice -n 19 node --expose-gc bench/error/test_vt_abort.js
notifications:
slack:
secure: wLpScQaDoEsVe0Bu28b62FGZBfmX3s/NK8DWcuSxEFx80k8RKPNgnMg8htamG0zRSf5htF+X6jy2P0IeUvbeupIaJwqtXvHaJYtlMTmemG/xuXLTpLp6k6giT2mWm/lp+ykuaF/PvUcZWUhSf1zhS6vwIekrMYIcDYvNXjO8DNw=
|