Skip to content

Commit 56446b4

Browse files
committed
Attempt at fixing Travis config for 1.17
1 parent 458f67f commit 56446b4

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.travis.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
language: rust
2-
script: cargo test --all-features $CARGOFLAGS
32

43
jobs:
54
include:
65
- rust: 1.17.0
7-
env: CARGOFLAGS="-p url"
6+
install:
7+
# --precise requires Cargo.lock to already exist
8+
- cargo update
9+
# getopts is only used in tests. Its versions 0.2.16+ don’t build on 1.17.0
10+
- cargo update -p getopts --precise 0.2.15
11+
# data-url uses pub(crate) which is unstable in 1.17
12+
script: cargo test --all-features -p url -p idna -p percent-encoding -p url_serde
13+
814
- rust: stable
9-
env: CARGOFLAGS="--all"
15+
script: cargo test --all-features --all
16+
1017
- rust: beta
11-
env: CARGOFLAGS="--all"
18+
script: cargo test --all-features --all
19+
1220
- rust: nightly
13-
env: CARGOFLAGS="--all"
21+
script: cargo test --all-features --all
22+
1423
- rust: nightly
15-
env: CARGOFLAGS="--all --target=wasm32-unknown-unknown"
24+
env: TARGET=WASM32 # For job list UI
1625
install: rustup target add wasm32-unknown-unknown
26+
script: cargo build --all --target=wasm32-unknown-unknown
1727

1828
notifications:
1929
webhooks: http://build.servo.org:54856/travis

0 commit comments

Comments
 (0)