about summary refs log tree commit diff
path: root/ci/base-tests.sh
AgeCommit message (Collapse)AuthorLines
2020-01-30Deprecate util/dev in favor of cargo aliasPhilipp Hansch-2/+2
If you've been using `./util/dev` before, this now becomes `cargo dev`. The key part of this change is found in `.cargo/config`. This means one less shell script and a bit more cross-platform support for contributors.
2019-12-01build: set up build job for i686 targetsLzu Tao-4/+0
2019-11-25Enable deny-warnings feature everywhere in CIflip1995-3/+3
2019-11-25Remove unused debugging featureflip1995-2/+2
2019-10-22nit: ! is not on a condition and skips errexitLzu Tao-1/+1
2019-10-22build: use shared target dirLzu Tao-3/+5
2019-10-22build: improve script and travis configLzu Tao-9/+12
* fix a diff failure on windows See https://travis-ci.com/rust-lang/rust-clippy/jobs/245971932#L1625 for an example. * use cmp instead of diff > /dev/null * clone single branch instead of clone then checking out * do not decrypt key if have no diff change
2019-07-15Auto merge of #4273 - mikerite:deny-warnings, r=flip1995bors-2/+2
Deny warnings in CI changelog: none
2019-07-15Deny warnings in CIMichael Wright-2/+2
2019-07-13Test with different sysroots dependent on the OSflip1995-5/+10
2019-07-13Don't re-set the LD_LIBRARY_PATH in base_tests.shflip1995-2/+0
2019-07-07Remove format checks from CI scripts again.Michael Wright-19/+0
2019-07-07Remove format checks from CI scriptMichael Wright-11/+0
2019-05-16Add a stderr file length check to clippy_devPhilipp Hansch-0/+1
This adds a check to `clippy_dev` that enforces a maximum line count for `stderr` files. CI will fail if the line count is exceeded. It's currently set to `320` lines. Ideally this would be implemented in `compiletest-rs` but there are plans to move Rust's `compiletest` into the `compiletest-rs` repository and I don't want to do the work in `compiletest` twice. However, I also don't want to wait until the move is done, so I added the check to `clippy_dev` until it makes sense to add it to compiletest-rs. cc #2038
2019-04-09Exclude ice-3891.rs from rustfmt runPhilipp Hansch-1/+3
Because the code triggers a rustc parse error which makes rustfmt fail.
2019-03-09Auto merge of #3824 - phansch:adding_lints, r=phanschbors-1/+1
Add lint writing documentation [Rendered](https://github.com/phansch/rust-clippy/blob/adding_lints/doc/adding_lints.md) This adds a new documentation page that explains how to write Clippy lints. It guides the reader through creating a `foo` function lint. I plan to iterate a bit more on the prose of some sections, but I think the general structure is fine now, so I'm looking forward to feedback =) One thing I'm not sure about: I felt like this is too big for CONTRIBUTING.md so I put it into a new `doc/` directory. I can imagine having more documentation in the future, so we might even want to create a book using mdbook instead? Or should everything go into CONTRIBUTING.md? Further things left to do: - [x] Link from CONTRIBUTING.md - [x] Remove things covered in this guide from CONTRIBUTING.md - [x] Section about `clippy::author` attribute - [x] Run `remark-lint` on CI over the `doc` directory and fix things
2019-03-07Add `[rustfmt::skip]` to `unused_unit` testMichael Wright-1/+1
2019-03-07Add `[rustfmt::skip]` to `doc_markdown` testsMichael Wright-1/+1
2019-03-03Run remark in `doc` directory, too.Philipp Hansch-1/+1
2019-02-28Add `rustfmt::skip` to `double_parens` testsMichael Wright-1/+1
2019-02-27Add `rustfmt::skip` to outer attr format testsMichael Wright-1/+1
2019-02-26Add [rustfmt::skip] to formatting lint testsMichael Wright-1/+1
2019-02-24Fix `useless_format` suggestionsMichael Wright-1/+1
2019-02-22rustfmt tests/ui/methods.rsMichael Wright-1/+1
2019-02-06Auto merge of #3665 - jsgf:master, r=oli-obkbors-6/+32
Start making clippy easier to invoke in non-cargo contexts Clippy (clippy-driver) currently has a couple of strong but unnecessary couplings with cargo. This series: 1. makes detection of check builds more robust, and 2. make clippy-driver use the --sysroot specified on the command line as its internal sysroot.
2019-02-03Add setup-toolchain.sh script to configure the master version of rustc,Jeremy Fitzhardinge-2/+2
and update CONTRIBUTING.md accordingly.
2019-02-02Add a CI test for cargoless use of clippy-driverJeremy Fitzhardinge-0/+25
2019-02-02base-tests: use subshells to manage current directoryJeremy Fitzhardinge-6/+7
It saves on having to pair `cd <path> && think && cd ..`.
2019-01-08Remove all copyright license headersPhilipp Hansch-11/+0
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
2018-12-27tests: fix formatting and update test outputMatthias Krüger-6/+3
fix script one last time™
2018-12-27base tests: make sure to fail CI if tests need formattingMatthias Krüger-8/+17
2018-12-27base tests: switch to nightly toolchain before checking formatting of tests ↵Matthias Krüger-0/+4
with rustfmt this errored because rustfmt is not available on the master toolchain
2018-12-14base tests: make sure cargo-clippy binary can be called directlyMatthias Krüger-0/+5
2018-12-12Auto merge of #3537 - matthiaskrgr:fix_script_2, r=matthiaskrgrbors-3/+2
base-tests: don't print all commands to stdout during the loop Fixes thinko in #3529
2018-12-12base-tests: don't print all commands to stdout during the loopMatthias Krüger-3/+2
2018-12-12fix typo in scriptMatthias Krüger-1/+1
2018-12-11Merge branch 'master' into rustfmt_testsMatthias Krüger-0/+2
2018-12-10test formatting: don't format tests/ui/formatting.rsMatthias Krüger-1/+1
2018-12-10update test stderrMatthias Krüger-2/+7
2018-12-09travis: base-tests: share CARGO_TARGET_DIR between check runs of subcrates ↵Matthias Krüger-0/+2
to avoid unneccessarily recompiling deps.
2018-12-09base tests: assert that tests are properly formatted.Matthias Krüger-0/+13
2018-12-05Fix dogfood tests.Wayne Warren-20/+0
2018-12-02Travis: Add rustc sysroot bin to PATH for windows buildPhilipp Hansch-0/+3
2018-11-27Let travis run cargo fmt --all -- --checkflip1995-0/+1
2018-11-05RIIR update lints: Add check mode (update_lints.py rewrite complete)Philipp Hansch-2/+3
This finishes up the rewrite of `update_lints.py` in Rust. More specifically, this * adds the `--check` flag and handling to clippy_dev * tracks file changes over the different calls to `replace_region_in_file` * only writes changes to files if the `--check` flag is *not* used * runs `./util/dev update_lints --check` on CI instead of the old script * replaces usage of the `update_lints.py` script with an error `./util/dev update_lints` behaves 99% the same as the python script. The only difference that I'm aware of is an ordering change to `clippy_lints/src/lib.rs` because underscores seem to be sorted differently in Rust and in Python. :checkered_flag:
2018-11-03Merge #3399bors[bot]-0/+1
3399: RIIR update lints: Generate modules section and lint group sections r=flip1995 a=phansch This adds the last missing parts of the generating code. cc #2882 Co-authored-by: Philipp Hansch <dev@phansch.net>
2018-11-03Test clippy_dev on CI and fix testPhilipp Hansch-0/+1
2018-11-02clippy: fix pedantic warnings and run clippy::pedantic lints on the codebase.Matthias Krüger-2/+2
Turn on pedantic lints in dogfood and base tests. needless_bool: fix clippy::items-after-statements redundant_pattern_matching: fix clippy::similar-names mods.rs: fix clippy::explicit-iter-loop returns.rs: allow clippy::cast-possible-wrap Fixes #3172
2018-10-27slightly simplify integration testsMatthias Krüger-2/+1
2018-10-26simplify ci base-testsMatthias Krüger-13/+13