Run tests on all channels (#108)

* Run tests on all channels

* try using travis.ci rust support
This commit is contained in:
Ty Overby 2017-02-03 09:54:39 -08:00 committed by GitHub
parent 565b9c9f41
commit 19538cff29
2 changed files with 5 additions and 29 deletions

View File

@ -1,27 +1,5 @@
lang: c
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/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
env:
matrix:
- CHANNEL='stable'
- CHANNEL='beta'
- CHANNEL='nightly'
global:
- secure: SZSxNqg9wiGx8EnJhifJ2kb/aCRcLim9TzTQyfurPqd8qVGkDOeVjTtbs+VTxLVXYtMJAz+YYnrQDwsu8kc/uYpQajU+gRMqNGEP5gNj3Ha5iNGDasAS6piIHQSMROayZ+D9g22nlGnjk8t9eZtLHC/Z8IWMCnjcIHvqMFY6cgI=
install:
- curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh > ./rustup.sh
- chmod +x ./rustup.sh
- ./rustup.sh --yes
script:
- multirust default $CHANNEL
- cargo build
- if [ $CHANNEL = 'nightly' ] ; then cargo test ; fi
language: rust
rust:
- stable
- beta
- nightly

View File

@ -1,5 +1,3 @@
#![feature(proc_macro)]
#[macro_use]
extern crate serde_derive;