File tree 1 file changed +19
-2
lines changed
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
- dist : trusty
1
+ dist : xenial
2
2
sudo : required
3
3
cache : cargo
4
4
language : rust
5
5
addons :
6
6
apt :
7
7
packages :
8
+ - kcov
8
9
- libcurl4-openssl-dev
9
10
- libelf-dev
10
11
- libdw-dev
11
12
- binutils-dev
12
13
- cmake
13
14
sources :
14
15
- kalakris-cmake
16
+ # The version of kcov shipped with Xenial (v25) doesn't support the
17
+ # --verify option that `cargo coveralls` passes. This PPA has a more
18
+ # up-to-date version. It can be removed if Ubuntu ever ships a newer
19
+ # version, or replaced with another PPA if this one falls out of date.
20
+ - sourceline : ppa:sivakov512/kcov
15
21
16
22
rust :
17
23
- stable
18
24
19
25
before_script :
20
26
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
21
- - cargo install --force cargo-travis && export PATH=$HOME/.cargo/bin:$PATH
27
+ - export PATH=$HOME/.cargo/bin:$PATH
28
+ # `cargo install` fails if the specified binary is already installed, and
29
+ # doesn't yet support a `--if-not-installed` option [0], so for now assume
30
+ # failures mean the package is already installed. If installation truly
31
+ # failed, the build will fail later anyway, when we try to use the installed
32
+ # binary. Note that `cargo install --force` is not a solution, as it always
33
+ # rebuilds from scratch, ignoring the cache entirely.
34
+ #
35
+ # [0]: https://github.com/rust-lang/cargo/issues/2082
36
+ - cargo install cargo-update || echo "cargo-update already installed"
37
+ - cargo install cargo-travis || echo "cargo-travis already installed"
38
+ - cargo install-update -a # updates cargo-travis, if the cached version is outdated
22
39
- rustup component add clippy rustfmt
23
40
24
41
script :
You can’t perform that action at this time.
0 commit comments