Skip to content

Commit 03911d9

Browse files
committed
Limit the gh-pages deployment step to only nightly build
1 parent f227ce0 commit 03911d9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.travis.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ rust:
99
script:
1010
- cargo build --verbose --all
1111
- cargo test --verbose --all
12-
- cargo doc --no-deps --all
1312

1413
env:
1514
# This is used to only capture the regular nightly test in allow_failures
@@ -62,6 +61,15 @@ matrix:
6261
- cargo fmt --all -- --check
6362
env:
6463
- REGULAR_TEST=false
64+
- name: publish documentation
65+
language: rust
66+
rust: nightly
67+
cache: cargo
68+
script:
69+
- cargo doc --no-deps --all
70+
env:
71+
- REGULAR_TEST=false
72+
- PUBLISH_DOC=true
6573
allow_failures:
6674
- rust: nightly
6775
env: REGULAR_TEST=true
@@ -76,3 +84,4 @@ deploy:
7684
keep-history: true
7785
on:
7886
branch: master
87+
condition: $PUBLISH_DOC = true

0 commit comments

Comments
 (0)