.travis.yml 1016 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
os:
  - linux
  - osx
sudo: false
language: cpp
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
11
    - bc
12
    - g++-4.8
13
env:
14 15 16 17
  matrix:
  - TRAVIS_NODE_VERSION="0.8"
  - TRAVIS_NODE_VERSION="0.10"
  - TRAVIS_NODE_VERSION="0.12"
18
  - TRAVIS_NODE_VERSION="4"
19
  - TRAVIS_NODE_VERSION="5"
20
  - TRAVIS_NODE_VERSION="6"
21
  - TRAVIS_NODE_VERSION="7"
22
  - TRAVIS_NODE_VERSION="8"
23
  - TRAVIS_NODE_VERSION="9"
24
install:
25
  - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
26 27
  - if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
  - $CXX --version
28
  - if [[ $(echo "$TRAVIS_NODE_VERSION < 4" | bc -l) ]]; then npm install npm@2 && mv node_modules npm && npm/.bin/npm --version && npm/.bin/npm install; else npm --version && npm install; fi
29
  - node_modules/.bin/node-gyp rebuild --directory test
30
script: node_modules/.bin/tap --gc test/js/*-test.js