Skip to content

Commit

Permalink
ci: run clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed May 3, 2019
1 parent 8999517 commit cfff8a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .appveyor.yml
Expand Up @@ -12,8 +12,8 @@ environment:
DENO_BUILD_PATH: $(APPVEYOR_BUILD_FOLDER)\target\release
DENO_THIRD_PARTY_PATH: $(APPVEYOR_BUILD_FOLDER)\third_party
RELEASE_ARTIFACT: deno_win_x64.zip
# Renamed to fix an Appveyor cache bug (restoring old caches).
RUST_DIR: $(USERPROFILE)\xrust
RUST_VERSION: 1.33.0
RUST_DIR: $(USERPROFILE)\rust-$(RUST_VERSION)
CARGO_HOME: $(RUST_DIR)\cargo
RUSTUP_HOME: $(RUST_DIR)\rustup
RUST_BACKTRACE: full
Expand Down Expand Up @@ -155,13 +155,14 @@ install:
Invoke-WebRequest -Uri "https://win.rustup.rs" `
-OutFile "$env:TEMP\rustup-init.exe"
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 @(
"$env:RUSTUP_HOME\downloads",
"$env:RUSTUP_HOME\tmp",
"$env:RUSTUP_HOME\toolchains\stable-x86_64-pc-windows-msvc\share\doc"
)
Exec { rustup component add clippy }
}
# Log installed Node.js version + processor architecture.
Expand Down Expand Up @@ -189,6 +190,7 @@ build_script:
# 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.
- cargo build -vv --release --locked
- cargo clippy --all-targets --release --locked -- -D clippy::all
- python tools\build.py

test_script:
Expand Down
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -42,6 +42,7 @@ install:
curl -sSf https://sh.rustup.rs | sh -s -- -y \
--default-toolchain $RUST_VERSION
rustup default $RUST_VERSION
rustup component add clippy
fi
rustc --version
cargo --version
Expand Down Expand Up @@ -116,6 +117,8 @@ jobs:
- ./tools/lint.py
- ./tools/test_format.py
- 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,
# 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
Expand Down

0 comments on commit cfff8a9

Please sign in to comment.