0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00

ci: run clippy

This commit is contained in:
Bert Belder 2019-05-03 03:29:56 +02:00
parent 8999517421
commit cfff8a9c1b
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461
2 changed files with 8 additions and 3 deletions

View file

@ -12,8 +12,8 @@ environment:
DENO_BUILD_PATH: $(APPVEYOR_BUILD_FOLDER)\target\release DENO_BUILD_PATH: $(APPVEYOR_BUILD_FOLDER)\target\release
DENO_THIRD_PARTY_PATH: $(APPVEYOR_BUILD_FOLDER)\third_party DENO_THIRD_PARTY_PATH: $(APPVEYOR_BUILD_FOLDER)\third_party
RELEASE_ARTIFACT: deno_win_x64.zip RELEASE_ARTIFACT: deno_win_x64.zip
# Renamed to fix an Appveyor cache bug (restoring old caches). RUST_VERSION: 1.33.0
RUST_DIR: $(USERPROFILE)\xrust RUST_DIR: $(USERPROFILE)\rust-$(RUST_VERSION)
CARGO_HOME: $(RUST_DIR)\cargo CARGO_HOME: $(RUST_DIR)\cargo
RUSTUP_HOME: $(RUST_DIR)\rustup RUSTUP_HOME: $(RUST_DIR)\rustup
RUST_BACKTRACE: full RUST_BACKTRACE: full
@ -155,13 +155,14 @@ install:
Invoke-WebRequest -Uri "https://win.rustup.rs" ` Invoke-WebRequest -Uri "https://win.rustup.rs" `
-OutFile "$env:TEMP\rustup-init.exe" -OutFile "$env:TEMP\rustup-init.exe"
Exec -NoNewLines { Exec -NoNewLines {
& "$env:TEMP\rustup-init.exe" -y --default-toolchain 1.33.0 & "$env:TEMP\rustup-init.exe" -y --default-toolchain $env:RUST_VERSION
} }
Delete-Tree @( Delete-Tree @(
"$env:RUSTUP_HOME\downloads", "$env:RUSTUP_HOME\downloads",
"$env:RUSTUP_HOME\tmp", "$env:RUSTUP_HOME\tmp",
"$env:RUSTUP_HOME\toolchains\stable-x86_64-pc-windows-msvc\share\doc" "$env:RUSTUP_HOME\toolchains\stable-x86_64-pc-windows-msvc\share\doc"
) )
Exec { rustup component add clippy }
} }
# Log installed Node.js version + processor architecture. # Log installed Node.js version + processor architecture.
@ -189,6 +190,7 @@ build_script:
# Build with Cargo first. Both builds produce a deno.exe in the same dir. We # Build with Cargo first. Both builds produce a deno.exe in the same dir. We
# want the final one (which gets tested and released) to be built by Ninja. # want the final one (which gets tested and released) to be built by Ninja.
- cargo build -vv --release --locked - cargo build -vv --release --locked
- cargo clippy --all-targets --release --locked -- -D clippy::all
- python tools\build.py - python tools\build.py
test_script: test_script:

View file

@ -42,6 +42,7 @@ install:
curl -sSf https://sh.rustup.rs | sh -s -- -y \ curl -sSf https://sh.rustup.rs | sh -s -- -y \
--default-toolchain $RUST_VERSION --default-toolchain $RUST_VERSION
rustup default $RUST_VERSION rustup default $RUST_VERSION
rustup component add clippy
fi fi
rustc --version rustc --version
cargo --version cargo --version
@ -116,6 +117,8 @@ jobs:
- ./tools/lint.py - ./tools/lint.py
- ./tools/test_format.py - ./tools/test_format.py
- cargo build -vv --release --locked - cargo build -vv --release --locked
- cargo clippy --all-targets --release --locked -- -D clippy::all
# LSAN: We are in the process of getting a completely clean LSAN build, # LSAN: We are in the process of getting a completely clean LSAN build,
# but it will take some work. So for now we just run a subset of the # but it will take some work. So for now we just run a subset of the
# tests. We want to detect leaks during the build process as well as # tests. We want to detect leaks during the build process as well as