Skip to content

Commit 4278570

Browse files
committed
Bumped version, doc location, Copied stuff from toml repository
1 parent 60df130 commit 4278570

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

.travis.yml

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1+
language: rust
12
env:
23
global:
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-
install:
6-
- curl https://static.rust-lang.org/rustup.sh | sudo sh -
4+
- secure: jHaQxUCPsFgcVfGn1Gw+GX+3GrmJjXOpEfHfoaeHz03r58IIzYD1mFL1/QjCPR8nn2X1GCuUzFaJtYB/1xmgYC6HZP7kFBGkygBEt0Jiem/lru328WNRD3/j9wQi1OL6+cTcNcz0+4oTiwvctqA8p3OcuKCr+VDiQnspq+orLHM=
5+
# GH_TOKEN
76
script:
8-
- cargo build --verbose && cargo test --verbose && cargo doc --verbose && mv target/doc
9-
doc
10-
after_script:
11-
- curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
12-
after_success:
13-
- [ $TRAVIS_BRANCH = master ] || exit
14-
- [ $TRAVIS_PULL_REQUEST = false ] || exit
15-
- cargo doc
16-
- echo '<meta http-equiv=refresh content=0;url=primes/index.html>' > doc/index.html
17-
- sudo pip install ghp-import
18-
- ghp-import -n doc
19-
- git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
7+
- cargo build --verbose
8+
- cargo test --verbose
9+
- cargo doc --verbose
10+
- mv target/doc doc
11+
12+
#[ $TRAVIS_BRANCH = master ] &&
13+
after_success: |
14+
[ $TRAVIS_PULL_REQUEST = false ] &&
15+
echo '<meta http-equiv=refresh content=0;url=primes/index.html>' > doc/index.html &&
16+
pip install ghp-import --user $USER &&
17+
$HOME/.local/bin/ghp-import -n doc &&
18+
git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
19+
notifications:
20+
email:
21+
on_success: never

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "primes"
4-
version = "0.1.5"
4+
version = "0.1.6"
55
authors = ["Wendell Smith <wendellwsmith@gmail.com>"]
66
license="BSD-3-Clause"
77

@@ -14,6 +14,6 @@ number is prime and calculating factors. Includes an iterator over all primes.
1414

1515
readme="README.md"
1616

17-
documentation = "http://rust-ci.org/wackywendell/primes/doc/primes/"
17+
documentation = "https://wackywendell.github.io/primes/"
1818
homepage = "https://github.com/wackywendell/primes/tree/master"
1919
repository = "https://github.com/wackywendell/primes/tree/master"

0 commit comments

Comments
 (0)