mirror of https://git.sr.ht/~stygianentity/bincode
Better travis tests (#69)
Use multirust to switch between language versions. Only run tests on nightly (because the serde macros won't build anywhere else).
This commit is contained in:
parent
21329a0e53
commit
c2fc3af47c
26
.travis.yml
26
.travis.yml
|
|
@ -1,9 +1,4 @@
|
||||||
language: rust
|
lang: c
|
||||||
rust:
|
|
||||||
- stable
|
|
||||||
- beta
|
|
||||||
- nightly
|
|
||||||
|
|
||||||
after_success: |
|
after_success: |
|
||||||
[ $TRAVIS_BRANCH = master ] &&
|
[ $TRAVIS_BRANCH = master ] &&
|
||||||
[ $TRAVIS_PULL_REQUEST = false ] &&
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
||||||
|
|
@ -12,10 +7,21 @@ after_success: |
|
||||||
sudo pip install ghp-import &&
|
sudo pip install ghp-import &&
|
||||||
ghp-import -n target/doc &&
|
ghp-import -n target/doc &&
|
||||||
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
matrix:
|
||||||
|
- CHANNEL='stable'
|
||||||
|
- CHANNEL='beta'
|
||||||
|
- CHANNEL='nightly'
|
||||||
global:
|
global:
|
||||||
- secure: SZSxNqg9wiGx8EnJhifJ2kb/aCRcLim9TzTQyfurPqd8qVGkDOeVjTtbs+VTxLVXYtMJAz+YYnrQDwsu8kc/uYpQajU+gRMqNGEP5gNj3Ha5iNGDasAS6piIHQSMROayZ+D9g22nlGnjk8t9eZtLHC/Z8IWMCnjcIHvqMFY6cgI=
|
- secure: SZSxNqg9wiGx8EnJhifJ2kb/aCRcLim9TzTQyfurPqd8qVGkDOeVjTtbs+VTxLVXYtMJAz+YYnrQDwsu8kc/uYpQajU+gRMqNGEP5gNj3Ha5iNGDasAS6piIHQSMROayZ+D9g22nlGnjk8t9eZtLHC/Z8IWMCnjcIHvqMFY6cgI=
|
||||||
matrix:
|
|
||||||
allow_failures:
|
install:
|
||||||
- rust: stable
|
- curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh > ./rustup.sh
|
||||||
- rust: beta
|
- chmod +x ./rustup.sh
|
||||||
|
- ./rustup.sh --yes
|
||||||
|
|
||||||
|
script:
|
||||||
|
- multirust default $CHANNEL
|
||||||
|
- cargo build
|
||||||
|
- if [ $CHANNEL = 'nightly' ] ; then cargo test ; fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue