Use cargo-update-installed instead of cargo-update (#491)

This commit is contained in:
Philipp Oppermann
2018-10-27 16:37:42 +02:00
committed by GitHub
parent 92c27c6545
commit 070e81964e
2 changed files with 4 additions and 4 deletions

View File

@@ -81,10 +81,10 @@ before_test:
- sed -rie "s/#define std([[:alpha:]]+)[[:space:]]+\(__acrt_iob_func\(([[:digit:]]+)\)\)/#define std\1 (\&__iob_func()[\2])/" "C:\msys64\mingw32\i686-w64-mingw32\include\stdio.h" - sed -rie "s/#define std([[:alpha:]]+)[[:space:]]+\(__acrt_iob_func\(([[:digit:]]+)\)\)/#define std\1 (\&__iob_func()[\2])/" "C:\msys64\mingw32\i686-w64-mingw32\include\stdio.h"
- rustup component add rust-src - rustup component add rust-src
- set RUST_BACKTRACE=1 - set RUST_BACKTRACE=1
- if not exist %USERPROFILE%\.cargo\bin\cargo-install-update.exe cargo install cargo-update - if not exist %USERPROFILE%\.cargo\bin\cargo-update-installed.exe cargo install cargo-update-installed
- if not exist %USERPROFILE%\.cargo\bin\cargo-xbuild.exe cargo install cargo-xbuild - if not exist %USERPROFILE%\.cargo\bin\cargo-xbuild.exe cargo install cargo-xbuild
- if not exist %USERPROFILE%\.cargo\bin\bootimage.exe cargo install bootimage - if not exist %USERPROFILE%\.cargo\bin\bootimage.exe cargo install bootimage
- cargo install-update -a - cargo update-installed
# Uses 'cargo test' to run tests and build. Alternatively, the project may call compiled programs # Uses 'cargo test' to run tests and build. Alternatively, the project may call compiled programs
# directly or perform other testing commands. Rust will automatically be placed in the PATH # directly or perform other testing commands. Rust will automatically be placed in the PATH

View File

@@ -36,10 +36,10 @@ install:
before_script: before_script:
- rustup component add rust-src - rustup component add rust-src
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update) - (test -x $HOME/.cargo/bin/cargo-update-installed || cargo install cargo-update-installed)
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild) - (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage) - (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
- cargo install-update -a - cargo update-installed
script: script:
- bootimage build - bootimage build