diff --git a/.travis.yml b/.travis.yml index 4040374..7c09ee6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,21 @@ +language: rust env: global: - - 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 - + - secure: jHaQxUCPsFgcVfGn1Gw+GX+3GrmJjXOpEfHfoaeHz03r58IIzYD1mFL1/QjCPR8nn2X1GCuUzFaJtYB/1xmgYC6HZP7kFBGkygBEt0Jiem/lru328WNRD3/j9wQi1OL6+cTcNcz0+4oTiwvctqA8p3OcuKCr+VDiQnspq+orLHM= + # GH_TOKEN script: -- 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 -after_success: -- [ $TRAVIS_BRANCH = master ] || exit -- [ $TRAVIS_PULL_REQUEST = false ] || exit -- cargo doc -- echo '' > doc/index.html -- sudo pip install ghp-import -- ghp-import -n doc -- git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages + - cargo build --verbose + - cargo test --verbose + - cargo doc --verbose + - mv target/doc doc + +#[ $TRAVIS_BRANCH = master ] && +after_success: | + [ $TRAVIS_PULL_REQUEST = false ] && + echo '' > doc/index.html && + pip install ghp-import --user $USER && + $HOME/.local/bin/ghp-import -n doc && + git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages +notifications: + email: + on_success: never \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 9bac9bb..c60dd3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "primes" -version = "0.1.5" +version = "0.1.6" authors = ["Wendell Smith "] license="BSD-3-Clause" @@ -14,6 +14,6 @@ number is prime and calculating factors. Includes an iterator over all primes. readme="README.md" -documentation = "http://rust-ci.org/wackywendell/primes/doc/primes/" +documentation = "https://wackywendell.github.io/primes/" homepage = "https://github.com/wackywendell/primes/tree/master" repository = "https://github.com/wackywendell/primes/tree/master"