summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.appveyor.yml8
-rw-r--r--.travis.yml3
2 files changed, 8 insertions, 3 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 236a954ca..bbb3ed7ff 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -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
@@ -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.
@@ -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:
diff --git a/.travis.yml b/.travis.yml
index 9e60126d0..1397a6d73 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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
@@ -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