Skip to content

Commit e08d8e4

Browse files
authored
Merge pull request #2363 from rust-lang-nursery/appveyor
Fix appveyor
2 parents 9a2c50f + d9063b7 commit e08d8e4

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

appveyor.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ environment:
22
global:
33
PROJECT_NAME: rust-clippy
44
matrix:
5-
- TARGET: i686-pc-windows-gnu
6-
MSYS2_BITS: 32
7-
- TARGET: i686-pc-windows-msvc
8-
MSYS2_BITS: 32
9-
- TARGET: x86_64-pc-windows-gnu
10-
MSYS2_BITS: 64
5+
#- TARGET: i686-pc-windows-gnu
6+
# MSYS2_BITS: 32
7+
#- TARGET: i686-pc-windows-msvc
8+
# MSYS2_BITS: 32
9+
#- TARGET: x86_64-pc-windows-gnu
10+
# MSYS2_BITS: 64
1111
- TARGET: x86_64-pc-windows-msvc
1212
MSYS2_BITS: 64
1313

@@ -26,9 +26,9 @@ test_script:
2626
- set RUST_BACKTRACE=1
2727
- cargo build --features debugging
2828
- cargo test --features debugging
29-
- copy target\debug\cargo-clippy.exe C:\Users\appveyor\.cargo\bin\
30-
- cargo clippy -- -D clippy
31-
- cd clippy_lints && cargo clippy -- -D clippy && cd ..
29+
#- copy target\debug\cargo-clippy.exe C:\Users\appveyor\.cargo\bin\
30+
#- cargo clippy -- -D clippy
31+
#- cd clippy_lints && cargo clippy -- -D clippy && cd ..
3232

3333
notifications:
3434
- provider: Email

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,12 @@ where
180180
args.push("--cfg".to_owned());
181181
args.push(r#"feature="cargo-clippy""#.to_owned());
182182

183-
let path = std::env::current_exe()
183+
let mut path = std::env::current_exe()
184184
.expect("current executable path invalid")
185185
.with_file_name("clippy-driver");
186+
if cfg!(windows) {
187+
path.set_extension("exe");
188+
}
186189
let exit_status = std::process::Command::new("cargo")
187190
.args(&args)
188191
.env("RUSTC_WRAPPER", path)

tests/dogfood.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ fn dogfood() {
33
if option_env!("RUSTC_TEST_SUITE").is_some() {
44
return;
55
}
6+
if cfg!(windows) {
7+
return;
8+
}
69
let root_dir = std::env::current_dir().unwrap();
710
for d in &[".", "clippy_lints"] {
811
std::env::set_current_dir(root_dir.join(d)).unwrap();

0 commit comments

Comments
 (0)