Skip to content

Commit 4bc4183

Browse files
committed
Use rustup.rs to install Rust in Travis builds
The old Rust installer has been replaced with rustup.rs. Use this to install Rust in Travis.
1 parent 65c8e31 commit 4bc4183

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,19 @@ python:
55
- "3.4"
66
- "3.5"
77
- "3.6"
8+
- "3.7"
89
env:
910
- RUST_VERSION=1.25.0
1011
- RUST_VERSION=nightly
1112
sudo: false
1213
install:
1314
- python -c "import sysconfig; print('\n'.join(map(repr,sorted(sysconfig.get_config_vars().items()))))"
14-
- mkdir ~/rust-installer
15-
- curl -sL https://static.rust-lang.org/rustup.sh -o ~/rust-installer/rustup.sh
16-
- sh ~/rust-installer/rustup.sh --prefix=~/rust --spec=$RUST_VERSION -y --disable-sudo
17-
- export PATH="$HOME/rust/bin:$PATH"
15+
- curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain "$RUST_VERSION"
16+
- export PATH="$HOME/.cargo/bin:$PATH"
1817
- export PYTHON_LIB=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
1918
- find $PYTHON_LIB
2019
- export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
21-
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB:$HOME/rust/lib"
20+
- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB"
2221
- rustc -V
2322
script:
2423
- make test extensions

0 commit comments

Comments
 (0)