build: Use rustfmt from lastest nightly that contains it
This commit is contained in:
parent
e8642c7a29
commit
abd76076b0
@ -32,7 +32,11 @@ install:
|
|||||||
- |
|
- |
|
||||||
if [[ -z ${INTEGRATION} ]]; then
|
if [[ -z ${INTEGRATION} ]]; then
|
||||||
if ! rustup component add rustfmt; then
|
if ! rustup component add rustfmt; then
|
||||||
cargo install --git https://github.com/rust-lang/rustfmt --bin rustfmt
|
TARGET=$(rustc -Vv | awk '/host/{print $2}')
|
||||||
|
NIGHTLY=$(curl -s "https://rust-lang.github.io/rustup-components-history/${TARGET}/rustfmt")
|
||||||
|
curl -sSL "https://static.rust-lang.org/dist/${NIGHTLY}/rustfmt-nightly-${TARGET}.tar.xz" | \
|
||||||
|
tar -xJf - --strip-components=3 -C ~/.cargo/bin
|
||||||
|
rm -rf ~/.cargo/bin/doc
|
||||||
fi
|
fi
|
||||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||||
. $HOME/.nvm/nvm.sh
|
. $HOME/.nvm/nvm.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user