Attempt sudo:false build matrix for node
This commit is contained in:
		
							parent
							
								
									5be3d29556
								
							
						
					
					
						commit
						a59053df27
					
				
							
								
								
									
										55
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										55
									
								
								.travis.yml
									
									
									
									
									
								
							| @ -132,6 +132,52 @@ matrix: | |||||||
|       #-     packages: ['clang-4.0', 'libbz2-dev', 'libstxxl-dev', 'libstxxl1', 'libxml2-dev', 'libzip-dev', 'lua5.1', 'liblua5.1-0-dev', 'libtbb-dev', 'libgdal-dev', 'libluabind-dev', 'libboost-all-dev'] |       #-     packages: ['clang-4.0', '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='clang-4.0' CXXCOMPILER='clang++-4.0' BUILD_TYPE='Release' BUILD_SHARED_LIBS=ON |       #- env: CCOMPILER='clang-4.0' CXXCOMPILER='clang++-4.0' BUILD_TYPE='Release' BUILD_SHARED_LIBS=ON | ||||||
| 
 | 
 | ||||||
|  |     # Node build jobs. These skip running the tests. | ||||||
|  |     - os: linux | ||||||
|  |       sudo: false | ||||||
|  |       compiler: "node-4-mason-linux-release" | ||||||
|  |       addons: | ||||||
|  |         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 | ||||||
|  |       nodejs: "4" | ||||||
|  |       script: | ||||||
|  |           npm run nodejs-tests | ||||||
|  |     - os: linux | ||||||
|  |       sudo: false | ||||||
|  |       compiler: "node-4-mason-linux-release" | ||||||
|  |       addons: | ||||||
|  |         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 | ||||||
|  |       nodejs: "4" | ||||||
|  |       script: | ||||||
|  |           npm run nodejs-tests | ||||||
|  |     - os: linux | ||||||
|  |       sudo: false | ||||||
|  |       compiler: "node-6-mason-linux-release" | ||||||
|  |       addons: | ||||||
|  |         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 | ||||||
|  |       nodejs: "6" | ||||||
|  |       script: | ||||||
|  |           npm run nodejs-tests | ||||||
|  |     - os: linux | ||||||
|  |       sudo: false | ||||||
|  |       compiler: "node-6-mason-linux-release" | ||||||
|  |       addons: | ||||||
|  |         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 | ||||||
|  |       nodejs: "6" | ||||||
|  |       script: | ||||||
|  |           npm run nodejs-tests | ||||||
|  | 
 | ||||||
| before_install: | before_install: | ||||||
|   - if [[ ! -z $TARGET_ARCH ]] ; then source ./scripts/travis/before_install.$TARGET_ARCH.sh ; fi |   - if [[ ! -z $TARGET_ARCH ]] ; then source ./scripts/travis/before_install.$TARGET_ARCH.sh ; fi | ||||||
|   - | |   - | | ||||||
| @ -179,6 +225,7 @@ install: | |||||||
|     if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then |     if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then | ||||||
|       ./scripts/check_taginfo.py taginfo.json profiles/car.lua |       ./scripts/check_taginfo.py taginfo.json profiles/car.lua | ||||||
|     fi |     fi | ||||||
|  |   - export OSRM_INSTALL_DIR="$(pwd)/install-osrm" | ||||||
|   - export OSRM_BUILD_DIR="$(pwd)/build-osrm" |   - export OSRM_BUILD_DIR="$(pwd)/build-osrm" | ||||||
|   - mkdir ${OSRM_BUILD_DIR} && pushd ${OSRM_BUILD_DIR} |   - mkdir ${OSRM_BUILD_DIR} && pushd ${OSRM_BUILD_DIR} | ||||||
|   - export CC=${CCOMPILER} CXX=${CXXCOMPILER} |   - export CC=${CCOMPILER} CXX=${CXXCOMPILER} | ||||||
| @ -191,7 +238,8 @@ install: | |||||||
|              -DENABLE_NODE_BINDINGS=${ENABLE_NODE_BINDINGS:-OFF} \ |              -DENABLE_NODE_BINDINGS=${ENABLE_NODE_BINDINGS:-OFF} \ | ||||||
|              -DENABLE_SANITIZER=${ENABLE_SANITIZER:-OFF} \ |              -DENABLE_SANITIZER=${ENABLE_SANITIZER:-OFF} \ | ||||||
|              -DBUILD_TOOLS=ON \ |              -DBUILD_TOOLS=ON \ | ||||||
|              -DENABLE_CCACHE=ON |              -DENABLE_CCACHE=ON \ | ||||||
|  |              -DCMAKE_INSTALL_PREFIX=${OSRM_INSTALL_DIR} | ||||||
|   - echo "travis_fold:start:MAKE" |   - echo "travis_fold:start:MAKE" | ||||||
|   - make --jobs=${JOBS} |   - make --jobs=${JOBS} | ||||||
|   - make tests --jobs=${JOBS} |   - make tests --jobs=${JOBS} | ||||||
| @ -201,10 +249,11 @@ install: | |||||||
|   - sudo make install |   - sudo make install | ||||||
|   - | |   - | | ||||||
|     if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then |     if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then | ||||||
|       sudo ldconfig |       export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${OSRM_INSTALL_DIR}/lib | ||||||
|     fi |     fi | ||||||
|   - popd |   - popd | ||||||
|   - mkdir example/build && pushd example/build |   - mkdir example/build && pushd example/build | ||||||
|  |   - export PKG_CONFIG_PATH=${OSRM_INSTALL_DIR}/lib/pkgconfig | ||||||
|   - cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} |   - cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} | ||||||
|   - make --jobs=${JOBS} |   - make --jobs=${JOBS} | ||||||
|   - popd |   - popd | ||||||
| @ -237,6 +286,6 @@ after_success: | |||||||
|     fi |     fi | ||||||
| 
 | 
 | ||||||
|   - | |   - | | ||||||
|     if [ -n "${ENABLE_NODE_BINDINGS}" ]; then |     if [ -n "${PUBLISH_NODE_BINDINGS}" ]; then | ||||||
|       ./scripts/travis/publish.sh |       ./scripts/travis/publish.sh | ||||||
|     fi |     fi | ||||||
|  | |||||||
| @ -5,13 +5,17 @@ set -o pipefail | |||||||
| 
 | 
 | ||||||
| if [[ ${PUBLISH} == 'On' ]]; then | if [[ ${PUBLISH} == 'On' ]]; then | ||||||
|     echo "PUBLISH is set to '${PUBLISH}', publishing!" |     echo "PUBLISH is set to '${PUBLISH}', publishing!" | ||||||
|  |     NPM_FLAGS='' | ||||||
|  |     if [[ ${BUILD_TYPE} == "Debug" ]]; then | ||||||
|  |         NPM_FLAGS='--debug' | ||||||
|  |     fi | ||||||
| 
 | 
 | ||||||
|     echo "node version is:" |     echo "node version is:" | ||||||
|     which node |     which node | ||||||
|     node -v |     node -v | ||||||
| 
 | 
 | ||||||
|     echo "dumping binary meta..." |     echo "dumping binary meta..." | ||||||
|     ./node_modules/.bin/node-pre-gyp reveal |     ./node_modules/.bin/node-pre-gyp reveal $NPM_FLAGS | ||||||
| 
 | 
 | ||||||
|     # enforce that binary has proper ORIGIN flags so that |     # enforce that binary has proper ORIGIN flags so that | ||||||
|     # it can portably find libtbb.so in the same directory |     # it can portably find libtbb.so in the same directory | ||||||
| @ -27,7 +31,7 @@ if [[ ${PUBLISH} == 'On' ]]; then | |||||||
|         fi |         fi | ||||||
|     fi |     fi | ||||||
| 
 | 
 | ||||||
|     ./node_modules/.bin/node-pre-gyp package publish info |     ./node_modules/.bin/node-pre-gyp package publish info $NPM_FLAGS | ||||||
| else | else | ||||||
|     echo "PUBLISH is set to '${PUBLISH}', skipping." |     echo "PUBLISH is set to '${PUBLISH}', skipping." | ||||||
| fi | fi | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user