Update .travis.yml
This commit is contained in:
parent
84158e40e9
commit
8ec34b71e3
1 changed files with 9 additions and 33 deletions
42
.travis.yml
42
.travis.yml
|
|
@ -1,39 +1,15 @@
|
||||||
# back to language cpp to try to bypass osx node failure
|
language: node_js
|
||||||
language: cpp
|
|
||||||
sudo: false
|
|
||||||
env:
|
|
||||||
- export NODE_VERSION="0.10"
|
|
||||||
- export NODE_VERSION="0.12"
|
|
||||||
- export NODE_VERSION="4"
|
|
||||||
- export NODE_VERSION="5"
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
- osx
|
||||||
# pre-install to bring in the correct version of node via nvm
|
|
||||||
before_install:
|
node_js:
|
||||||
- git submodule update --init --recursive
|
- "node"
|
||||||
- git clone https://github.com/creationix/nvm.git ./.nvm
|
- "lts/*"
|
||||||
- source ./.nvm/nvm.sh
|
- "7"
|
||||||
- nvm install $NODE_VERSION
|
- "8"
|
||||||
- nvm use $NODE_VERSION
|
|
||||||
- npm config set python `which python`
|
|
||||||
- if [ $TRAVIS_OS_NAME == "linux" ]; then
|
|
||||||
export CC="gcc-4.8";
|
|
||||||
export CXX="g++-4.8";
|
|
||||||
export LINK="gcc-4.8";
|
|
||||||
export LINKXX="g++-4.8";
|
|
||||||
fi
|
|
||||||
- gcc --version
|
|
||||||
- g++ --version
|
|
||||||
# node 4 depends on gcc 4.8
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- g++-4.8
|
|
||||||
- gcc-4.8
|
|
||||||
# script needed to test, because defaults don't work on osx
|
|
||||||
script:
|
script:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue