mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 19:41:37 +08:00
Merge pull request #32 from jgallagher/host-documentation-on-ghp
Have travis push docs to github pages instead of rust-ci
This commit is contained in:
commit
bfa922fc18
12
.travis.yml
12
.travis.yml
@ -2,13 +2,17 @@ language: rust
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: Dr/AOuXnBuLZqw0ZW+KDKlCyUGUfqMv5AnuPr8mnzxL3CrWInBwoNv8bME3pY10A/u4e16+T6NhdK5AuoYvhTnDUM0srGMhHgTtV8X5yQog1U0BUIMTfQhgGOQ+/2m0yawjtm7KTZQmNCh5+c/S26fZPVcgoMpu9GZR5h7m2ep4=
|
secure: "FyGzHF0AIYdBcuM/2qIoABotx3MbNAlaHDzxPbbeUlVg64bnuib9G9K/qWve0a1BWCgv+8e/SbXZb7gt3JlUNE27aE4RZG4FEdtEpLYQp87Dc9d9HX0FwpUeFK3binsrtYl4WEBnIjQ3ICnUVey0E6GHEdkM+t5bWyJO5c4dJ30="
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo build
|
- cargo build
|
||||||
- cargo test
|
- cargo test
|
||||||
- cargo doc --no-deps
|
- cargo doc --no-deps
|
||||||
|
|
||||||
after_script:
|
after_success: |
|
||||||
- mv target/doc .
|
[ $TRAVIS_BRANCH = master ] &&
|
||||||
- curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
||||||
|
echo '<meta http-equiv=refresh content=0;url=rusqlite/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
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Rusqlite is an ergonomic wrapper for using SQLite from Rust. It attempts to expose
|
Rusqlite is an ergonomic wrapper for using SQLite from Rust. It attempts to expose
|
||||||
an interface similar to [rust-postgres](https://github.com/sfackler/rust-postgres). View the full
|
an interface similar to [rust-postgres](https://github.com/sfackler/rust-postgres). View the full
|
||||||
[API documentation](http://www.rust-ci.org/jgallagher/rusqlite/doc/rusqlite/).
|
[API documentation](http://jgallagher.github.io/rusqlite/rusqlite/index.html).
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
extern crate rusqlite;
|
extern crate rusqlite;
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
//! an interface similar to [rust-postgres](https://github.com/sfackler/rust-postgres).
|
//! an interface similar to [rust-postgres](https://github.com/sfackler/rust-postgres).
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
//! #![allow(unstable)]
|
|
||||||
//! extern crate rusqlite;
|
//! extern crate rusqlite;
|
||||||
//! extern crate time;
|
//! extern crate time;
|
||||||
//!
|
//!
|
||||||
|
@ -140,7 +140,6 @@ impl<T: ToSql> ToSql for Option<T> {
|
|||||||
/// ## Example
|
/// ## Example
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,no_run
|
||||||
/// #![allow(unstable)]
|
|
||||||
/// # extern crate libc;
|
/// # extern crate libc;
|
||||||
/// # extern crate rusqlite;
|
/// # extern crate rusqlite;
|
||||||
/// # use rusqlite::{SqliteConnection, SqliteResult};
|
/// # use rusqlite::{SqliteConnection, SqliteResult};
|
||||||
|
Loading…
Reference in New Issue
Block a user