aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 26d147c95ddb360c2babbfdfcc76ef8b2c568ba4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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