Skip to content

Commit 73e4fab

Browse files
committed
ci: build/upload docs on master
Signed-off-by: Paul Osborne <[email protected]>
1 parent 172ea23 commit 73e4fab

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

.travis.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,14 @@ rust:
55
- stable
66
- beta
77
- nightly
8-
env:
9-
global:
10-
- secure: cJteZ1LbDExDnUMJqWrPQwHNWFDJOP5OH1zYX8j1nkJ91paDqBogCuHslooSDcrewnCmTLawv8na1KjGMZ2y3mwn26GhF5TfXsY+vHATIyex+z2fGOgCOlx47MSRdK7A30Pl66Ye/oboDX7iTqc+uzNucoutOB/ji4euD6wOu1g=
8+
9+
before_script:
10+
- pip install 'travis-cargo<0.2' --user
11+
1112
script:
1213
- cargo build --verbose
1314
- cargo test --verbose
14-
- cargo doc
15-
16-
# Publish documentation on successfull master build
17-
# using the ghp-import python package
18-
after_success: ! '[ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ]
19-
&& echo "<meta http-equiv=refresh content=0;url=spidev/index.html>" > target/doc/index.html
20-
&& sudo pip install ghp-import
21-
&& ghp-import -n target/doc
22-
&& git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages'
15+
- travis-cargo --only stable doc
2316

24-
notifications:
25-
webhooks: http://rust-embedded-bot.herokuapp.com/travis
17+
after_success:
18+
- travis-cargo --only stable doc-upload

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Rust Spidev
55
[![Version](https://img.shields.io/crates/v/spidev.svg)](https://crates.io/crates/spidev)
66
[![License](https://img.shields.io/crates/l/spidev.svg)](https://github.com/rust-embedded/rust-spidev/blob/master/README.md#license)
77

8-
[Documentation](https://posborne.github.io/rust-spidev)
8+
[Documentation](https://rust-embedded.github.io/rust-spidev)
99

1010
The Rust `spidev` seeks to provide full access to the Linux spidev
1111
device in Rust without the need to wrap any C code or directly make

0 commit comments

Comments
 (0)