diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..8a2468d
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,20 @@
+language: rust
+sudo: false
+script:
+ - cargo build --verbose
+ - cargo test --verbose
+ - cargo doc
+ - rustdoc --test README.md -L target
+after_success: |
+ [ $TRAVIS_BRANCH = master ] &&
+ [ $TRAVIS_PULL_REQUEST = false ] &&
+ echo '' > target/doc/index.html &&
+ pip install ghp-import --user $USER &&
+ $HOME/.local/bin/ghp-import -n target/doc &&
+ git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
+env:
+ global:
+ secure: bnPRXhVawJwerfEWYNzEfzK8Y4GOme0RqyLqQ6E5GU6B1EdCGaPgz8d4q8S2nXCq8IrzbEGo7nJaWptO3iNTnG/NIQ4qcLsQaDCz8ICAZTbS1dTbNByX2S9GyXUxCkaIfRNCSTuRSD276tdgj69VOW3bp0rgUpkpYhoGupmc3VY=
+notifications:
+ email:
+ on_success: never
diff --git a/Cargo.toml b/Cargo.toml
index 5f11a27..779ffa0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,6 +5,7 @@ version = "0.1.6"
authors = ["Alex Crichton "]
license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/gcc-rs"
+documentation = "http://alexcrichton.com/gcc-rs"
description = """
A build-time dependency for Cargo build scripts to assist in invoking the native
C compiler to compile native C code into a static archive to be linked into Rust
diff --git a/README.md b/README.md
index a294697..a5454ce 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,19 @@
# gcc-rs
+[](https://travis-ci.org/alexcrichton/gcc-rs)
+
+[Documentation](http://alexcrichton.com/gcc-rs/gcc/index.html)
+
A simple library meant to be used as a build dependency with Cargo packages in
order to build a set of C files into a static archive.
-```rust
+```rust,no_run
extern crate gcc;
+use std::default::Default;
+
fn main() {
- gcc::compile_library("libfoo.a", &["foo.c", "bar.c"]);
+ gcc::compile_library("libfoo.a", &Default::default(), &["foo.c", "bar.c"]);
}
```