.travis.yml
language: node_js
sudo: false
os:
- linux
addons:
code_climate:
repo_token: 2fc04cdf13c36c90a173a744cb506252466e8680ad1a644118bfec47c498141c
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
node_js:
- '0.12'
- '4'
- '5'
- '6'
install:
- 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
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
- $CXX --version
- npm install
script: npm test
after_script:
- npm install -g codeclimate-test-reporter
- codeclimate-test-reporter < ./coverage/lcov.info