aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-13 16:31:14 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-13 16:31:14 -0700
commit972a43c3ca1aa82fecb7aa31d4a42d599edb1101 (patch)
tree0463a08450d4a55f180be41841ad6281c5ef1f28
parent20c4a1469ddf3e965030b1a3093683db23e9c781 (diff)
downloadfatcat-972a43c3ca1aa82fecb7aa31d4a42d599edb1101.tar.gz
fatcat-972a43c3ca1aa82fecb7aa31d4a42d599edb1101.zip
switch to cargo-travis
-rw-r--r--.travis.yml57
1 files changed, 29 insertions, 28 deletions
diff --git a/.travis.yml b/.travis.yml
index e9fb657a..d9b95813 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,49 +1,50 @@
-sudo: false
+sudo: required
language: rust
-# necessary for `travis-cargo coveralls --no-sudo`
+
+# Cache cargo symbols for faster build
+cache: cargo
+
+# Dependencies of kcov, used by coverage
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- - binutils-dev # optional: only required for the --verify flag of coveralls
+ - binutils-dev
+ - cmake # also required for cargo-update
+ sources:
+ - kalakris-cmake
# run builds for all the trains (and more)
rust:
- - nightly
- - beta
+ #- nightly
+ #- beta
# check it compiles on the latest stable compiler
- stable
# and the first stable one (this should be bumped as the minimum
# Rust version required changes)
- - 1.0.0
+ #- 1.0.0
-# load travis-cargo
before_script:
- - |
- pip install 'travis-cargo<0.2' --user &&
- export PATH=$HOME/.local/bin:$PATH
+ - cd rust
+ - export PATH=$HOME/.cargo/bin:$PATH
+ - cargo install cargo-update || echo "cargo-update already installed"
+ - cargo install cargo-travis || echo "cargo-travis already installed"
+ - cargo install-update -a # update outdated cached binaries
# the main build
+# cargo bench &&
script:
- |
- travis-cargo build &&
- travis-cargo test &&
- travis-cargo bench &&
- travis-cargo --only stable doc
-after_success:
- # upload the documentation from the build with stable (automatically only actually
- # runs on the master branch, not individual PRs)
- - travis-cargo --only stable doc-upload
- # measure code coverage and upload to coveralls.io (the verify
- # argument mitigates kcov crashes due to malformed debuginfo, at the
- # cost of some speed <https://github.com/huonw/travis-cargo/issues/12>)
- - travis-cargo coveralls --no-sudo --verify
+ cd rust &&
+ cargo build &&
+ cargo test &&
+ cargo doc
-env:
- global:
- # override the default `--features unstable` used for the nightly branch (optional)
- - TRAVIS_CARGO_NIGHTLY_FEATURE=nightly
- # encrypted github token for doc upload (see `GH_TOKEN` link above)
- - secure: "..."
+after_success:
+ - cd rust
+# upload documentation to github.io (gh-pages branch)
+ - cargo doc-upload
+# measure code coverage and upload to coveralls.io
+ - cargo coveralls