Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit d136f69

Browse files
committed
[ci] Switch to travis's Rust build for improved performance
1 parent 435140e commit d136f69

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

.travis.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Request an environment that provides sudo (that goes with larger containers)
22
# and a minimal language environment.
33
sudo: true
4-
language: minimal
4+
language: rust
55

66
cache: cargo
77

@@ -13,13 +13,18 @@ env:
1313
global:
1414
- RUST_BACKTRACE=1
1515
matrix:
16-
- RUST_TOOLCHAIN=nightly TARGET=wasm
17-
- RUST_TOOLCHAIN=stable TARGET=native
16+
- rust: stable
17+
env: TARGET=native
18+
- rust: nightly
19+
env: TARGET=wasm
1820

1921
before_install:
20-
# Check how much space we've got on this machine.
22+
# Check how much space we've got on this machine.
2123
- df -h
2224

25+
install:
26+
- travis_wait 30 cargo update --locked
27+
2328
script:
2429
- ./ci/script.sh
2530

ci/script.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22

33
set -eux
44

5-
# Install rustup and the specified rust toolchain.
6-
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=$RUST_TOOLCHAIN -y
7-
8-
# Load cargo environment. Specifically, put cargo into PATH.
9-
source ~/.cargo/env
10-
11-
rustc --version
12-
rustup --version
13-
cargo --version
14-
155
case $TARGET in
166
"native")
177
sudo apt-get -y update

0 commit comments

Comments
 (0)