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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
os: linux
group: edge
addons:
apt:
packages:
- libdevmapper-dev
language: rust
matrix:
fast_finish: true
allow_failures:
# Allow beta tasks to fail
- rust: beta
# Allow macro-expansion test to fail
- rust: nightly
include:
# Run rustfmt on the compiler currently recommended for development
- rust: 1.31.0
before_script:
- rustup component add rustfmt
env: TASK=travis_fmt
# Build on current stable compiler
- rust: stable
env: TASK=build
# Verify that source and tests build on rustc 1.31.0
# rustc 1.31.0 is the lowest supported compiler version.
- rust: 1.31.0
env: TASK=test
# Run tests on current stable compiler
- rust: stable
sudo: required
env: TASK=sudo_test
# Run clippy using the compiler version recommended for development
- rust: 1.31.0
before_script:
- rustup component add clippy
env: TASK=clippy
# Run tests on rust beta, in order to be good Rustaceans
- rust: beta
sudo: required
env: TASK=sudo_test
# Run "cargo expand" on rust nightly, in order to see expanded macros
# that happen to be of interest.
- rust: nightly
before_script:
- rustup component add rustfmt
env: TASK=expand
branches:
only: master
script: make -f Makefile $TASK