forked from magic-wormhole/magic-wormhole.rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (49 loc) · 1.54 KB
/
.travis.yml
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
55
56
57
language: rust
rust:
- stable
- beta
- nightly
os:
- linux
- osx
branches:
except:
- /^WIP-.*$/
matrix:
include:
- rust: 1.27.0 # lock down for consistent rustfmt behavior
env: RUSTFMT
before_install:
install:
- rustup component add rustfmt-preview
- rustfmt --version
script:
- cargo fmt -- --write-mode=diff
- rust: nightly
env: CLIPPY
install:
- cargo +nightly install clippy
script:
- cargo +nightly clippy
allow_failures:
- rust: nightly # both compiles and clippy
# copied from https://github.com/dnaq/sodiumoxide/blob/master/.travis.yml
before_install:
- wget https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz
- tar xvfz libsodium-1.0.16.tar.gz
- cd libsodium-1.0.16 && ./configure --prefix=$HOME/installed_libsodium && make && make install && cd ..
- export PKG_CONFIG_PATH=$HOME/installed_libsodium/lib/pkgconfig:$PKG_CONFIG_PATH
- export LD_LIBRARY_PATH=$HOME/installed_libsodium/lib:$LD_LIBRARY_PATH
script:
- cargo clean
- cargo build --verbose --all
# - cargo run --verbose --example XYZ
# - cargo test --verbose --features "test" --all
- cargo test --verbose --all
after_success: |
if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
# Uncomment the following two lines create and upload a report for codecov.io
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash)
fi