-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
69 lines (55 loc) · 4.42 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
58
59
60
61
62
63
64
65
66
67
68
69
language: rust
matrix:
fast_finish: true
include:
- rust: nightly
env: TRAVIS_CARGO_NIGHTLY_FEATURE="nightly"
- rust: beta
- rust: stable
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
before_script:
- pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
- cargo install cargo-benchcmp --force
script:
- cargo build --verbose
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
travis-cargo test -- --lib &&
travis-cargo test -- --doc;
fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
travis-cargo test;
fi
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
if [ "$TRAVIS_EVENT_TYPE" == "push" ]; then
export CONTROL_COMMIT=HEAD^
export BENCH_COMMIT=HEAD
fi
if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ]; then
export CONTROL_COMMIT=master
export BENCH_COMMIT=${TRAVIS_COMMIT}
fi
git clone ${REMOTE_URL} "${TRAVIS_BUILD_DIR}/../${TRAVIS_REPO_SLUG}-bench" && \
cd "${TRAVIS_BUILD_DIR}/../${TRAVIS_REPO_SLUG}-bench" && \
git checkout ${CONTROL_COMMIT} && \
cargo bench > benches-control && \
git checkout ${BENCH_COMMIT} && \
cargo bench > benches-variable && \
cargo benchcmp benches-control benches-variable;
fi
- travis-cargo --only stable doc
after_success:
- travis-cargo --only stable doc-upload
- travis-cargo coveralls --no-sudo --verify
env:
global:
- REMOTE_URL=https://github.com/afonso360/discogs-rs.git
- secure: fJPG5Ssu91iymoWgrphYePS+/S8DRuigKrcdhCKNFE5PS5xzz7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