Let Travis test both beta and nightly
This commit is contained in:
parent
b7f25a5fc1
commit
58d9b7a00e
2 changed files with 19 additions and 14 deletions
30
.travis.yml
30
.travis.yml
|
@ -1,21 +1,25 @@
|
||||||
language: rust
|
language: rust
|
||||||
|
|
||||||
notifications:
|
rust:
|
||||||
email:
|
- 1.0.0-beta
|
||||||
on_success: never
|
- nightly
|
||||||
on_failure: always
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- secure: "VeXvD0tLJyu38t87p8AAztSQVBxsCE1y016l/Nc44203V/RUxj4tz5ifaZcKziPqFHK2ITs2T6fBE1uu404zMVwA0W0J8vmG6+xDoJJLsbwKp4W3SlAI+oIEmFSTIxgzAB7hio17VPDmAqKbnbhbmbP+U94ygoztRNN3ObCZ8yo="
|
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
|
notifications:
|
||||||
|
email:
|
||||||
|
on_success: never
|
||||||
|
on_failure: always
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- secure: "VeXvD0tLJyu38t87p8AAztSQVBxsCE1y016l/Nc44203V/RUxj4tz5ifaZcKziPqFHK2ITs2T6fBE1uu404zMVwA0W0J8vmG6+xDoJJLsbwKp4W3SlAI+oIEmFSTIxgzAB7hio17VPDmAqKbnbhbmbP+U94ygoztRNN3ObCZ8yo="
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo build
|
- cargo build
|
||||||
- cargo test
|
- cargo test
|
||||||
- cargo doc --no-deps
|
- cargo doc --no-deps
|
||||||
- rustdoc --test README.md -L target
|
- rustdoc --test README.md -L target
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- .travis/publish_doc.sh
|
- .travis/publish_doc.sh
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
if [ "$TRAVIS_BRANCH" = "master" ] &&
|
if [ "$TRAVIS_BRANCH" = "master" ] &&
|
||||||
[ "$TRAVIS_PULL_REQUEST" = "false" ] &&
|
[ "$TRAVIS_PULL_REQUEST" = "false" ] &&
|
||||||
[ "$TRAVIS_REPO_SLUG" = "mvdnes/zip-rs" ]
|
[ "$TRAVIS_REPO_SLUG" = "mvdnes/zip-rs" ] &&
|
||||||
|
[ "$TRAVIS_RUST_VERSION" = "1.0.0-beta" ]
|
||||||
then
|
then
|
||||||
echo "Publishing documentation..."
|
echo "Publishing documentation..."
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue