aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 5099a5d..26d147c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,11 +1,14 @@
dist: bionic
language: rust
-sudo: false
+sudo: required
rust:
- stable
- beta
- nightly
+# Cache cargo symbols for faster build
+cache: cargo
+
addons:
apt:
packages:
@@ -13,6 +16,12 @@ addons:
- notmuch
- git
+before_script:
+ - 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
+
script:
- cargo build --no-default-features --verbose --all
# clone notmuch to have mail corpora