Browse Source

Fix README and add travis config

add-rc-path
Alex Crichton 10 years ago
parent
commit
c0a56a3a9f
  1. 20
      .travis.yml
  2. 1
      Cargo.toml
  3. 10
      README.md

20
.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 '<meta http-equiv=refresh content=0;url=gcc/index.html>' > 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

1
Cargo.toml

@ -5,6 +5,7 @@ version = "0.1.6"
authors = ["Alex Crichton <alex@alexcrichton.com>"] authors = ["Alex Crichton <alex@alexcrichton.com>"]
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
repository = "https://github.com/alexcrichton/gcc-rs" repository = "https://github.com/alexcrichton/gcc-rs"
documentation = "http://alexcrichton.com/gcc-rs"
description = """ description = """
A build-time dependency for Cargo build scripts to assist in invoking the native 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 C compiler to compile native C code into a static archive to be linked into Rust

10
README.md

@ -1,13 +1,19 @@
# gcc-rs # gcc-rs
[![Build Status](https://travis-ci.org/alexcrichton/gcc-rs.svg?branch=master)](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 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. order to build a set of C files into a static archive.
```rust ```rust,no_run
extern crate gcc; extern crate gcc;
use std::default::Default;
fn main() { fn main() {
gcc::compile_library("libfoo.a", &["foo.c", "bar.c"]); gcc::compile_library("libfoo.a", &Default::default(), &["foo.c", "bar.c"]);
} }
``` ```

Loading…
Cancel
Save