Skip to content

Commit 43ce9c8

Browse files
committed
Added travis GHP pusher
1 parent d39400b commit 43ce9c8

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.travis.yml

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
env:
22
global:
3-
- secure: PUjDU++nskQf0ZqR4LiqsiPPmi03zSTY85/lzTe30j5P3QvA9vG/mFw3EzeEeo20Y0gXqNRwZwuSgVNFkwU+Mps7nIU6QRwqa/yCxM6z8wCpzUbZv58k3PGpkzetuCIBL0R18a+Q/E2GXvx6gJtC1G+0FJijy3XcaAQonC5ikTQ=
4-
3+
- secure: PUjDU++nskQf0ZqR4LiqsiPPmi03zSTY85/lzTe30j5P3QvA9vG/mFw3EzeEeo20Y0gXqNRwZwuSgVNFkwU+Mps7nIU6QRwqa/yCxM6z8wCpzUbZv58k3PGpkzetuCIBL0R18a+Q/E2GXvx6gJtC1G+0FJijy3XcaAQonC5ikTQ=
4+
- secure: jHaQxUCPsFgcVfGn1Gw+GX+3GrmJjXOpEfHfoaeHz03r58IIzYD1mFL1/QjCPR8nn2X1GCuUzFaJtYB/1xmgYC6HZP7kFBGkygBEt0Jiem/lru328WNRD3/j9wQi1OL6+cTcNcz0+4oTiwvctqA8p3OcuKCr+VDiQnspq+orLHM=
55
install:
66
- curl https://static.rust-lang.org/rustup.sh | sudo sh -
77
script:
8-
- cargo build --verbose && cargo test --verbose && cargo doc --verbose && mv target/doc doc
9-
8+
- cargo build --verbose && cargo test --verbose && cargo doc --verbose && mv target/doc
9+
doc
1010
after_script:
11-
- curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
11+
- curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
12+
after_success: |
13+
[ $TRAVIS_BRANCH = master ] &&
14+
[ $TRAVIS_PULL_REQUEST = false ] &&
15+
cargo doc &&
16+
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html &&
17+
sudo pip install ghp-import &&
18+
ghp-import -n target/doc &&
19+
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
20+
21+
language: lets us specify rust, which for now defaults to the latest nightly.

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ case, but slower in the long term as they do not use any caching of primes.
6161
6262
*/
6363
#![feature(core,step_by,test)]
64+
#![doc(html_root_url = "https://wackywendell.github.io/primes/")]
6465

6566
#[warn(non_camel_case_types)]
6667
#[warn(non_snake_case)]

0 commit comments

Comments
 (0)