mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
commit
e08d8e4876
18
appveyor.yml
18
appveyor.yml
@ -2,12 +2,12 @@ environment:
|
|||||||
global:
|
global:
|
||||||
PROJECT_NAME: rust-clippy
|
PROJECT_NAME: rust-clippy
|
||||||
matrix:
|
matrix:
|
||||||
- TARGET: i686-pc-windows-gnu
|
#- TARGET: i686-pc-windows-gnu
|
||||||
MSYS2_BITS: 32
|
# MSYS2_BITS: 32
|
||||||
- TARGET: i686-pc-windows-msvc
|
#- TARGET: i686-pc-windows-msvc
|
||||||
MSYS2_BITS: 32
|
# MSYS2_BITS: 32
|
||||||
- TARGET: x86_64-pc-windows-gnu
|
#- TARGET: x86_64-pc-windows-gnu
|
||||||
MSYS2_BITS: 64
|
# MSYS2_BITS: 64
|
||||||
- TARGET: x86_64-pc-windows-msvc
|
- TARGET: x86_64-pc-windows-msvc
|
||||||
MSYS2_BITS: 64
|
MSYS2_BITS: 64
|
||||||
|
|
||||||
@ -26,9 +26,9 @@ test_script:
|
|||||||
- set RUST_BACKTRACE=1
|
- set RUST_BACKTRACE=1
|
||||||
- cargo build --features debugging
|
- cargo build --features debugging
|
||||||
- cargo test --features debugging
|
- cargo test --features debugging
|
||||||
- copy target\debug\cargo-clippy.exe C:\Users\appveyor\.cargo\bin\
|
#- copy target\debug\cargo-clippy.exe C:\Users\appveyor\.cargo\bin\
|
||||||
- cargo clippy -- -D clippy
|
#- cargo clippy -- -D clippy
|
||||||
- cd clippy_lints && cargo clippy -- -D clippy && cd ..
|
#- cd clippy_lints && cargo clippy -- -D clippy && cd ..
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
- provider: Email
|
- provider: Email
|
||||||
|
@ -180,9 +180,12 @@ where
|
|||||||
args.push("--cfg".to_owned());
|
args.push("--cfg".to_owned());
|
||||||
args.push(r#"feature="cargo-clippy""#.to_owned());
|
args.push(r#"feature="cargo-clippy""#.to_owned());
|
||||||
|
|
||||||
let path = std::env::current_exe()
|
let mut path = std::env::current_exe()
|
||||||
.expect("current executable path invalid")
|
.expect("current executable path invalid")
|
||||||
.with_file_name("clippy-driver");
|
.with_file_name("clippy-driver");
|
||||||
|
if cfg!(windows) {
|
||||||
|
path.set_extension("exe");
|
||||||
|
}
|
||||||
let exit_status = std::process::Command::new("cargo")
|
let exit_status = std::process::Command::new("cargo")
|
||||||
.args(&args)
|
.args(&args)
|
||||||
.env("RUSTC_WRAPPER", path)
|
.env("RUSTC_WRAPPER", path)
|
||||||
|
@ -3,6 +3,9 @@ fn dogfood() {
|
|||||||
if option_env!("RUSTC_TEST_SUITE").is_some() {
|
if option_env!("RUSTC_TEST_SUITE").is_some() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if cfg!(windows) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let root_dir = std::env::current_dir().unwrap();
|
let root_dir = std::env::current_dir().unwrap();
|
||||||
for d in &[".", "clippy_lints"] {
|
for d in &[".", "clippy_lints"] {
|
||||||
std::env::set_current_dir(root_dir.join(d)).unwrap();
|
std::env::set_current_dir(root_dir.join(d)).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user