forked from crossbeam-rs/crossbeam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
100 lines (92 loc) · 2.53 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
language: rust
cache: cargo
branches:
only:
- master
- staging
- trying
matrix:
fast_finish: true
include:
# Test crates on their minimum Rust versions.
- rust: 1.28.0
name: "crossbeam on 1.28.0"
script: ./ci/crossbeam.sh
- rust: 1.28.0
name: "crossbeam-channel on 1.28.0"
script: ./ci/crossbeam-channel.sh
- rust: 1.28.0
name: "crossbeam-deque on 1.28.0"
script: ./ci/crossbeam-deque.sh
- rust: 1.28.0
name: "crossbeam-epoch on 1.28.0"
script: ./ci/crossbeam-epoch.sh
- rust: 1.28.0
name: "crossbeam-queue on 1.28.0"
script: ./ci/crossbeam-queue.sh
- rust: 1.28.0
name: "crossbeam-skiplist on 1.28.0"
script: ./ci/crossbeam-skiplist.sh
- rust: 1.28.0
name: "crossbeam-utils on 1.28.0"
script: ./ci/crossbeam-utils.sh
# Test crates on nightly Rust.
- rust: nightly
name: "crossbeam on nightly"
script: ./ci/crossbeam.sh
install:
- rustup target add thumbv7m-none-eabi
- rustup target add thumbv6m-none-eabi
- rust: nightly
name: "crossbeam-channel on nightly"
script: ./ci/crossbeam-channel.sh
- rust: nightly
name: "crossbeam-deque on nightly"
script: ./ci/crossbeam-deque.sh
- rust: nightly
name: "crossbeam-epoch on nightly"
script: ./ci/crossbeam-epoch.sh
install:
- rustup target add thumbv7m-none-eabi
- rustup target add thumbv6m-none-eabi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
- llvm-toolchain-precise-3.8
packages:
- llvm-3.8
- llvm-3.8-dev
- clang-3.8
- clang-3.8-dev
- rust: nightly
name: "crossbeam-queue on nightly"
script: ./ci/crossbeam-queue.sh
- rust: nightly
name: "crossbeam-skiplist on nightly"
script: ./ci/crossbeam-skiplist.sh
install:
- rustup target add thumbv7m-none-eabi
- rustup target add thumbv6m-none-eabi
- rust: nightly
name: "crossbeam-utils on nightly"
script: ./ci/crossbeam-utils.sh
install:
- rustup target add thumbv7m-none-eabi
- rustup target add thumbv6m-none-eabi
# Check for duplicate dependencies.
- rust: nightly
name: "dependency tree check"
script: ./ci/dependencies.sh
# Check formatting.
- rust: stable
name: "rustfmt"
script: ./ci/rustfmt.sh
before_script:
# cfg-if 0.1.10 requires Rust 1.31+ so downgrade it.
- |
if [[ "$TRAVIS_RUST_VERSION" == "1.28.0" ]]; then
cargo generate-lockfile
cargo update -p cfg-if --precise 0.1.9
fi