Skip to content

Commit 43cf643

Browse files
committed
Test on rust 1.0.0, nightly, and beta
1 parent 58e0735 commit 43cf643

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.travis.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
language: rust
2+
rust:
3+
- 1.0.0
4+
- beta
5+
- nightly
6+
sudo: false
27
script:
3-
- cargo build --verbose
4-
- cargo test --verbose
5-
- cargo doc
6-
after_success: ! '[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ]
7-
&& echo ''<meta http-equiv=refresh content=0;url=conduit-middleware/index.html>''
8-
> target/doc/index.html && sudo pip install ghp-import && ghp-import -n target/doc
9-
&& git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages '
8+
- cargo build --verbose
9+
- cargo test --verbose
10+
- cargo doc
11+
after_success: |
12+
[ $TRAVIS_BRANCH = master ] &&
13+
[ $TRAVIS_PULL_REQUEST = false ] &&
14+
[ $TRAVIS_RUST_VERSION = nightly ] &&
15+
echo '<meta http-equiv=refresh content=0;url=conduit-middleware/index.html>' > target/doc/index.html &&
16+
pip install ghp-import --user $USER &&
17+
$HOME/.local/bin/ghp-import -n target/doc &&
18+
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
1019
env:
1120
global:
1221
secure: J4nYe5Gnwr/TnGjNH4lWN08sKlDiQ3OpiblkjRrVv73n0EEk6zEgeAkpY+moPi95eVDe7sfp7wP+CLAlzdDfPhMUGMjcP7xFnq1z4b+cJT1lXFtwf8EFmDIV9hhdutsK/zhTxFD39/wUmLmHtntMzaY0BFBtPjuoFz7ew6ErAVA=

0 commit comments

Comments
 (0)