Skip to content

Commit

Permalink
Added travis GHP pusher
Browse files Browse the repository at this point in the history
  • Loading branch information
wackywendell committed Apr 2, 2015
1 parent d39400b commit 43ce9c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
env:
global:
- secure: PUjDU++nskQf0ZqR4LiqsiPPmi03zSTY85/lzTe30j5P3QvA9vG/mFw3EzeEeo20Y0gXqNRwZwuSgVNFkwU+Mps7nIU6QRwqa/yCxM6z8wCpzUbZv58k3PGpkzetuCIBL0R18a+Q/E2GXvx6gJtC1G+0FJijy3XcaAQonC5ikTQ=

- secure: PUjDU++nskQf0ZqR4LiqsiPPmi03zSTY85/lzTe30j5P3QvA9vG/mFw3EzeEeo20Y0gXqNRwZwuSgVNFkwU+Mps7nIU6QRwqa/yCxM6z8wCpzUbZv58k3PGpkzetuCIBL0R18a+Q/E2GXvx6gJtC1G+0FJijy3XcaAQonC5ikTQ=
- secure: jHaQxUCPsFgcVfGn1Gw+GX+3GrmJjXOpEfHfoaeHz03r58IIzYD1mFL1/QjCPR8nn2X1GCuUzFaJtYB/1xmgYC6HZP7kFBGkygBEt0Jiem/lru328WNRD3/j9wQi1OL6+cTcNcz0+4oTiwvctqA8p3OcuKCr+VDiQnspq+orLHM=
install:
- curl https://static.rust-lang.org/rustup.sh | sudo sh -
script:
- cargo build --verbose && cargo test --verbose && cargo doc --verbose && mv target/doc doc

- cargo build --verbose && cargo test --verbose && cargo doc --verbose && mv target/doc
doc
after_script:
- curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
- curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
language: lets us specify rust, which for now defaults to the latest nightly.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ case, but slower in the long term as they do not use any caching of primes.
*/
#![feature(core,step_by,test)]
#![doc(html_root_url = "https://wackywendell.github.io/primes/")]

#[warn(non_camel_case_types)]
#[warn(non_snake_case)]
Expand Down

0 comments on commit 43ce9c8

Please sign in to comment.