Move docs to this repo and auto build in travis
This commit is contained in:
parent
05554fde8f
commit
561d7be79c
12
.travis.yml
12
.travis.yml
@ -2,7 +2,13 @@ language: rust
|
||||
addons:
|
||||
postgresql: 9.3
|
||||
before_script:
|
||||
- ./.travis/setup.sh
|
||||
- "./.travis/setup.sh"
|
||||
script:
|
||||
- cargo test
|
||||
- cargo test --features "uuid"
|
||||
- cargo test
|
||||
- cargo test --features "uuid"
|
||||
- cargo doc --no-deps
|
||||
after_success:
|
||||
- test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && ./travis/update_docs.sh
|
||||
env:
|
||||
global:
|
||||
secure: cZEcWfKI7Pml5og9o1zBMYhbj20Pa22kYVDTDEHqvOoe0kq1cnB5sTH7P0FUgiPq2Ax4B8eQIaC30yvFJ02R7kmTys4aQD98NyCyzdO+dqYi93C9PFYGhl/DKsb4iZ2VP+8LffYSwRGsNSzE9Fj9SFRMIOjHN+UfaVHXaUVjE7Y=
|
||||
|
18
.travis/update_docs.sh
Executable file
18
.travis/update_docs.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit -o nounset
|
||||
|
||||
rev=$(git rev-parse --short HEAD)
|
||||
|
||||
git clone --branch gh-pages "https://$GH_TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs
|
||||
cd deploy_docs
|
||||
|
||||
git config user.name "Steven Fackler"
|
||||
git config user.email "sfackler@gmail.com"
|
||||
|
||||
rm -rf docs
|
||||
mv ../target/docs .
|
||||
|
||||
git add -A .
|
||||
git commit -m "rebuild pages at ${rev}"
|
||||
git push
|
@ -50,7 +50,7 @@
|
||||
//! }
|
||||
//! }
|
||||
//! ```
|
||||
#![doc(html_root_url="https://sfackler.github.io/doc")]
|
||||
#![doc(html_root_url="https://sfackler.github.io/rust-postgres/doc")]
|
||||
#![feature(plugin, unsafe_destructor, collections, io, core, path, std_misc)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user