aboutsummaryrefslogtreecommitdiffstats
path: root/notmuch/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to 'notmuch/.travis.yml')
-rw-r--r--notmuch/.travis.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/notmuch/.travis.yml b/notmuch/.travis.yml
new file mode 100644
index 0000000..26d147c
--- /dev/null
+++ b/notmuch/.travis.yml
@@ -0,0 +1,29 @@
+dist: bionic
+language: rust
+sudo: required
+rust:
+ - stable
+ - beta
+ - nightly
+
+# Cache cargo symbols for faster build
+cache: cargo
+
+addons:
+ apt:
+ packages:
+ - libnotmuch-dev
+ - 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
+ - git clone git://git.notmuchmail.org/git/notmuch /tmp/notmuch
+ - cargo test --no-default-features --verbose --all