Make Travis use its own Rust support and cargo.
authorChris Morgan <me@chrismorgan.info>
committerChris Morgan <me@chrismorgan.info>
.travis.yml

index 4e6dc6b1a73f11b01046375bb76ceb3ac0828989..8d62afb5b58624c4a28e0d516a2d086176c6b7cc 100644 (file)
@@ -1,12 +1,11 @@
+language: rust
 env:
   global:
     - secure: o2bgX4ObmN5b/lG2pk7U4tSu2/h0tLUxhHe3X6ZHi7A6MFOMtZOV+7g5TJX94YyAcsT5AWFSnl1Wv4dZcIJXsFkcZguFu6WI/Psc09K3zsA6NtXrqdcKv7XRBxivTKvfZ14PYhLgOuU+o1HreCQvolr5nmiX2gORmvD2Xc3qbHI=
-before_install:
-  - wget http://static.rust-lang.org/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz
-  - tar xf rust-nightly-x86_64-unknown-linux-gnu.tar.gz
-install:
-  - sudo ./rust-nightly-x86_64-unknown-linux-gnu/install.sh
 script:
-  - make all docs test
+  - cargo build --verbose
+  - cargo test --verbose
+  - cargo doc --verbose
 after_script:
+  - ln -s target/doc doc
   - curl http://www.rust-ci.org/artifacts/put?t=$RUSTCI_TOKEN | sh