trying to figure out how jobs and stages work together...
@@ -20,19 +20,6 @@ before_install:
- nvm install ${TRAVIS_NODE_VERSION}
- nvm use ${TRAVIS_NODE_VERSION}
-jobs:
- include:
- - stage: docs
- rust: stable
- script: |
- [ $TRAVIS_BRANCH = master ] &&
- [ $TRAVIS_PULL_REQUEST = false ] &&
- cargo doc &&
- echo "<meta http-equiv=refresh content=0;url=neon/index.html>" > target/doc/index.html &&
- sudo pip install ghp-import &&
- ghp-import -n target/doc &&
- git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
-
addons:
apt:
sources:
@@ -40,10 +27,9 @@ addons:
packages:
- g++-4.8
-matrix:
- allow_failures:
- - rust: nightly
-
+jobs:
+ include:
+ - stage: test
script: |
cd tests/ &&
npm test &&
@@ -51,3 +37,13 @@ script: |
cd ../compile_tests/ &&
cargo test
fi
+ - stage: docs
+ rust: stable
+ script: |
+ [ $TRAVIS_BRANCH = master ] &&
+ [ $TRAVIS_PULL_REQUEST = false ] &&
+ cargo doc &&
+ echo "<meta http-equiv=refresh content=0;url=neon/index.html>" > target/doc/index.html &&
+ sudo pip install ghp-import &&
+ ghp-import -n target/doc &&
+ git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
