From b34cdc7a79e1ac36621a70dfaa3661d294e05268 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 21 Jun 2016 17:20:08 +0200 Subject: [PATCH 1/4] speed up travis by not recompiling clippy just to test `cargo clippy` --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4329bb258040..403b41f032a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ script: - python util/update_lints.py -c - cargo build --features debugging - cargo test --features debugging - - SYSROOT=~/rust cargo install + - cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy - cargo clippy -- -D clippy - cd clippy_lints && cargo clippy -- -D clippy && cd .. From 490030647d7877ce5642e93927513c9b3c3cf7b1 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 22 Jun 2016 10:36:18 +0200 Subject: [PATCH 2/4] create missing cargo directory --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 403b41f032a1..0d5a6bc9fce6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ script: - python util/update_lints.py -c - cargo build --features debugging - cargo test --features debugging + - mkdir -p ~/rust/cargo/bin - cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy - cargo clippy -- -D clippy - cd clippy_lints && cargo clippy -- -D clippy && cd .. From 94eb9013367f01aa2c4441d563e754d3bc7e355c Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 22 Jun 2016 10:37:08 +0200 Subject: [PATCH 3/4] add cargo/bin to PATH --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0d5a6bc9fce6..a1425e15f3f4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,8 +21,8 @@ script: - cargo test --features debugging - mkdir -p ~/rust/cargo/bin - cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy - - cargo clippy -- -D clippy - - cd clippy_lints && cargo clippy -- -D clippy && cd .. + - PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy + - PATH=$PATH:~/rust/cargo/bin cd clippy_lints && cargo clippy -- -D clippy && cd .. after_success: # only test regex_macros if it compiles From ba33fd0a3ae47b7bdc9c1cb39343bcf1430108d3 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 22 Jun 2016 14:37:08 +0200 Subject: [PATCH 4/4] pass the path to the correct command --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a1425e15f3f4..b65c8a7c1dd3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ script: - mkdir -p ~/rust/cargo/bin - cp target/debug/cargo-clippy ~/rust/cargo/bin/cargo-clippy - PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy - - PATH=$PATH:~/rust/cargo/bin cd clippy_lints && cargo clippy -- -D clippy && cd .. + - cd clippy_lints && PATH=$PATH:~/rust/cargo/bin cargo clippy -- -D clippy && cd .. after_success: # only test regex_macros if it compiles