File tree 2 files changed +16
-5
lines changed
2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
env :
2
2
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=
5
5
install :
6
6
- curl https://static.rust-lang.org/rustup.sh | sudo sh -
7
7
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
10
10
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.
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ case, but slower in the long term as they do not use any caching of primes.
61
61
62
62
*/
63
63
#![ feature( core, step_by, test) ]
64
+ #![ doc( html_root_url = "https://wackywendell.github.io/primes/" ) ]
64
65
65
66
#[ warn( non_camel_case_types) ]
66
67
#[ warn( non_snake_case) ]
You can’t perform that action at this time.
0 commit comments