Commit Graph

24 Commits

Author SHA1 Message Date
Yacin Tmimi
8c4c336e37 remove archived error-chain crate from integration tests
Can't run `cargo test --all` for `error-chain` anymore. The tests don't
compile because of `#[deny(invalid_doc_attributes)]`. Here's  the error
message:

```
error: this attribute can only be applied at the crate level
   --> tests/tests.rs:508:7
    |
508 | #[doc(test)]
    |       ^^^^
    |
    = note: read <https://doc.rust-lang.org/nightly/rustdoc/the-doc-attribute.html#at-the-crate-level> for more information
    = note: `#[deny(invalid_doc_attributes)]` on by default
help: to apply to the crate, use an inner attribute
    |
508 | #![doc(test)]
    |  +
```
2024-06-12 22:40:05 -04:00
Caleb Cartwright
094b7f599c Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt 2023-01-24 14:16:03 -06:00
Caleb Cartwright
ac595dd57a Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt 2022-06-22 22:14:32 -05:00
Alexander Melentyev
71f01d1974 Delete spaces 2021-06-21 12:11:37 +03:00
Seiichi Uchida
577ef8136f
Update rustc-ap-* crates to 659.0.0 for rustfmt-1.4.15 (#4184) 2020-05-19 17:31:28 +09:00
Stéphane Campinas
31fbf34439
add check for failed tests 2019-04-15 12:01:49 +02:00
Stéphane Campinas
81a1d46723
exit integration test successfully if the crate build failed before applying rustfmt
The `cargo test --all` command failed and exited the main process with a
SIGINT. Trapping the signal or trying to get the code of a subshell
didn't work.

Close #2724
2019-04-15 11:33:11 +02:00
Stéphane Campinas
ee90de5746
show the HEAD of the integration branch to faciliate reproducing an error with rustfmt 2019-03-20 10:16:41 +01:00
topecongiro
d956980de4 Use edition 2018 2019-02-08 00:22:34 +09:00
Otavio Salvador
693a2fc23a CI: Rework integration script so only lib unit tests are run for crater
Refs: https://github.com/rust-lang-nursery/crater/issues/358

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-11-01 16:48:21 -03:00
Nick Cameron
b21a9c800c Fix the Failure integration test
Fixes #2858
2018-08-01 12:01:52 +12:00
Nick Cameron
a1c5c46986
Merge pull request #2793 from rust-lang-nursery/integr-test-fail
Don't fail integration tests if the subject is not passing its own tests
2018-06-19 10:40:21 +12:00
gnzlbg
cf1164ee7d do not fix chalk 2018-06-18 10:43:07 +02:00
Nick Cameron
46601a3435 Don't fail integration tests if the subject is not passing its own tests
As suggested in https://github.com/rust-lang-nursery/rustfmt/pull/2715#issuecomment-390397152
2018-06-18 20:17:07 +12:00
gnzlbg
dda964d0be fix chalk build 2018-06-18 10:04:21 +02:00
gnzlbg
3b65e15989 update issues; allow stdsimd to fail 2018-06-18 09:49:17 +02:00
gnzlbg
88a2c48ce3 preserve pipe error status (tee always succeeds); check fmt before running tests 2018-06-15 15:07:32 +02:00
gnzlbg
aacebc854a test cargo fmt --all -- --check returns success after formatting 2018-06-15 14:20:39 +02:00
Nick Cameron
9226a50b14 Fix and tweak integration tests 2018-05-21 08:58:53 +12:00
gnzlbg
c6c654517b try harder to print output 2018-05-18 10:46:14 +02:00
Nick Cameron
5fb987fff8 Fixup integration tests 2018-05-18 17:13:16 +12:00
Philipp Hansch
3ecac79c09
Shallow clone in integration tests
This should make cloning a bit faster for all the integration tests.
2018-05-16 19:15:51 +02:00
gnzlbg
4e8b5a7e6a output the result of rustfmt on ci 2018-05-15 19:55:56 +02:00
gnzlbg
c79f39af16 Add integration tests against crates in the rust-lang-nursery
This commit adds integration tests against some crates in the
nursery.

Each integration test is added as a separate build-bot, where
the rust-lang-nursery/${CRATE} is first downloaded and its tests run.
Afterwards, `cargo fmt --all` is applied to the crate, and the tests
are re-run. If the tests fail after formatting, the integration test
fails.

The crates that currently fail are added as allowed-to-fail, but the
intent is that either these crates or rustfmt should be fixed such
that the tests pass.
2018-05-10 00:31:55 +02:00