Commit a3bfb4c2 by Dane Springmeyer

update travis

parent e486895b
language: node_js language: cpp
node_js: env:
- "0.10" matrix:
- "0.8" - export NODE_VERSION="0.8"
- export NODE_VERSION="0.10"
global:
- secure: QhuP5E/kYL1j1KDkHGJtk6DSJr1RH4DR/JrC62Viuf5Du8jE+i0kPWfF2MxtuEmKo35orhpu8t8mzKygWfuO63WPuuIE9qd/+V/y99Lqcj0tEN6wJ5RnywktbTJWg23zphjhmYq3Xj8DLVEikCZBwHtlbygkO9Q60cn1PK+bnPg=
- secure: HxCS2dQAWI0KmCFnFNNZoucG4FeAW+itG7+Hp0dNtwmxZzGOZYFO2bZcGvTAMNfVN++oqLxTebYQI1oB5yUl5mPJjrjthaGS6Zq3S6rfJcXiv+icYgEXlR6ejQ97dsHw1Jeg8nedCQlI4kHfvG6pgBLhq9hnugxH1Cjhdt14E9U=
before_install: before_install:
- sudo apt-get -qq update # put node-pre-gyp on path
- export PATH=./node_modules/.bin/:$PATH
- echo $NODE_VERSION
- git clone https://github.com/creationix/nvm.git ../.nvm
- source ../.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- node --version
- npm --version
- npm install mocha
- platform=$(uname -s | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/")
install: install:
# test installing from a binary # test installing from source
- npm install - npm install --build-from-source
- npm install mocha - npm test
- npm test
before_script: before_script:
- make clean # test publishing
- echo $TRAVIS_BRANCH
- echo $TRAVIS_COMMIT
- echo `git describe --tags --always HEAD`
- PUBLISH=false
- if [ "[publish]" = `git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n'` ]; then echo yes;PUBLISH=true; fi;
- if [[ `git describe --contains $( git rev-parse HEAD )` ]]; then echo yes;PUBLISH=true; fi;
- if [[ $PUBLISH == true ]]; then node-pre-gyp package publish; fi
script: script:
# test source compile with internal libsqlite3 # test install from published binary
- npm install --stage - make clean
- npm test - npm install
- sudo apt-get -qq install libsqlite3-dev - npm test
- make clean - make clean
# test source compile against external libsqlite3 # test source compile against system libsqlite3
- npm install --build-from-source --sqlite=/usr - if [[ "$platform" == 'linux' ]]; then sudo apt-get -qq update; sudo apt-get -qq install libsqlite3-dev; fi
# output linking details for debugging - make clean
- ldd lib/binding/*/*/*node - npm install --build-from-source --sqlite=/usr
- npm test - npm test
- make clean - make clean
# node v0.8 and above provide pre-built 32 bit and 64 bit linux binaries # node v0.8 and above provide pre-built 32 bit and 64 bit binaries
# so here we use the 32 bit ones to also test 32 bit builds # so here we use the 32 bit ones to also test 32 bit builds
- export NVER=`node -v` - NVER=`node -v`
- if [[ "$NVER" != v0.6* ]]; then wget http://nodejs.org/dist/${NVER}/node-${NVER}-linux-x86.tar.gz; fi - wget http://nodejs.org/dist/${NVER}/node-${NVER}-${platform}-x86.tar.gz
- if [[ "$NVER" != v0.6* ]]; then tar xf node-${NVER}-linux-x86.tar.gz; fi - tar xf node-${NVER}-${platform}-x86.tar.gz
- if [[ "$NVER" != v0.6* ]]; then export PATH=$(pwd)/node-${NVER}-linux-x86/bin:$PATH; fi # enable 32 bit node
- if [[ "$NVER" != v0.6* ]]; then sudo apt-get -y install binutils:i386 cpp:i386 gcc-4.6:i386 g++-4.6:i386 libstdc++6-4.6-dev:i386 | true; fi - export PATH=$(pwd)/node-${NVER}-${platform}-x86/bin:$PATH
# test source compile in 32 bit mode with internal libsqlite3 # install 32 bit compiler toolchain
- if [[ "$NVER" != v0.6* ]]; then CC=gcc-4.6 CXX=g++-4.6 npm install --build-from-source; fi - if [[ "$platform" == 'linux' ]]; then sudo apt-get -y install gcc-multilib g++-multilib; fi
- if [[ "$NVER" != v0.6* ]]; then ldd lib/binding/*/*/*node; fi # test source compile in 32 bit mode with internal libsqlite3
- if [[ "$NVER" != v0.6* ]]; then npm test; fi - if [[ "$platform" == 'linux' ]]; then CC=gcc-4.6 CXX=g++-4.6 npm install --build-from-source; else npm install --build-from-source; fi
- if [[ "$NVER" != v0.6* ]]; then make clean; fi - npm test
- if [[ "$NVER" != v0.6* ]]; then sudo apt-get -y install libsqlite3-dev:i386; fi # publish 32 bit build
# test source compile in 32 bit mode against external libsqlite3 - if [[ $PUBLISH == true ]]; then node-pre-gyp package publish; fi;
- if [[ "$NVER" != v0.6* ]]; then CC=gcc-4.6 CXX=g++-4.6 npm install --build-from-source --sqlite=/usr; fi - make clean
- if [[ "$NVER" != v0.6* ]]; then ldd lib/binding/*/*/*node; fi # test source compile in 32 bit mode against external libsqlite3
- if [[ "$NVER" != v0.6* ]]; then npm test; fi - if [[ "$platform" == 'linux' ]]; then sudo apt-get -y install libsqlite3-dev:i386; CC=gcc-4.6 CXX=g++-4.6 npm install --build-from-source --sqlite=/usr; npm test; fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment