Skip to content

Commit

Permalink
chore: disable warnings in old CI (#4691)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darksonn committed May 14, 2022
1 parent aa03622 commit b24df49
Show file tree
Hide file tree
Showing 22 changed files with 37 additions and 323 deletions.
25 changes: 25 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2.1
jobs:
test-arm:
machine:
image: ubuntu-2004:202101-01
resource_class: arm.medium
environment:
# Change to pin rust versino
RUST_STABLE: stable
steps:
- checkout
- run:
name: Install Rust
command: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup.sh
chmod +x rustup.sh
./rustup.sh -y --default-toolchain $RUST_STABLE
source "$HOME"/.cargo/env
# Only run Tokio tests
- run: cargo test --all-features -p tokio

workflows:
ci:
jobs:
- test-arm
4 changes: 1 addition & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
freebsd_instance:
image: freebsd-12-2-release-amd64
env:
RUSTFLAGS: -D warnings

# Test FreeBSD in a full VM on cirrus-ci.com. Test the i686 target too, in the
# same VM. The binary will be built in 32-bit mode, but will execute on a
Expand All @@ -25,7 +23,7 @@ task:
name: FreeBSD docs
env:
RUSTFLAGS: --cfg docsrs
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
RUSTDOCFLAGS: --cfg docsrs
setup_script:
- pkg install -y bash curl
- curl https://sh.rustup.rs -sSf --output rustup.sh
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
name: CI

env:
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1
nightly: nightly-2021-10-25
minrust: 1.45.2
Expand Down Expand Up @@ -65,11 +64,6 @@ jobs:
run: cargo hack test --each-feature
working-directory: tests-integration

# Run macro build tests
- name: test tests-build --each-feature
run: cargo hack test --each-feature
working-directory: tests-build

# Build benchmarks. Run of benchmarks is done by bench.yml workflow.
- name: build benches
run: cargo build --benches
Expand Down Expand Up @@ -129,7 +123,7 @@ jobs:
run: cargo test --all-features
working-directory: tokio
env:
RUSTFLAGS: --cfg tokio_unstable -Dwarnings
RUSTFLAGS: --cfg tokio_unstable

miri:
name: miri
Expand Down Expand Up @@ -213,7 +207,7 @@ jobs:
- name: check --each-feature --unstable
run: cargo hack check --all --each-feature -Z avoid-dev-deps
env:
RUSTFLAGS: --cfg tokio_unstable -Dwarnings
RUSTFLAGS: --cfg tokio_unstable

minrust:
name: minrust
Expand Down Expand Up @@ -298,7 +292,7 @@ jobs:
run: cargo doc --lib --no-deps --all-features --document-private-items
env:
RUSTFLAGS: --cfg docsrs
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
RUSTDOCFLAGS: --cfg docsrs

loom-compile:
name: build loom tests
Expand All @@ -312,7 +306,7 @@ jobs:
run: cargo test --no-run --lib --features full
working-directory: tokio
env:
RUSTFLAGS: --cfg loom --cfg tokio_unstable -Dwarnings
RUSTFLAGS: --cfg loom --cfg tokio_unstable

check-readme:
name: Check README
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/loom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
name: Loom

env:
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1

jobs:
Expand All @@ -35,6 +34,6 @@ jobs:
run: cargo test --lib --release --features full -- --nocapture $SCOPE
working-directory: tokio
env:
RUSTFLAGS: --cfg loom --cfg tokio_unstable -Dwarnings
RUSTFLAGS: --cfg loom --cfg tokio_unstable
LOOM_MAX_PREEMPTIONS: 2
SCOPE: ${{ matrix.scope }}
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ members = [
"benches",
"examples",
"stress-test",
"tests-build",
"tests-integration",
]
16 changes: 0 additions & 16 deletions tests-build/Cargo.toml

This file was deleted.

2 changes: 0 additions & 2 deletions tests-build/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions tests-build/src/lib.rs

This file was deleted.

6 changes: 0 additions & 6 deletions tests-build/tests/fail/macros_core_no_default.rs

This file was deleted.

7 changes: 0 additions & 7 deletions tests-build/tests/fail/macros_core_no_default.stderr

This file was deleted.

8 changes: 0 additions & 8 deletions tests-build/tests/fail/macros_dead_code.rs

This file was deleted.

11 changes: 0 additions & 11 deletions tests-build/tests/fail/macros_dead_code.stderr

This file was deleted.

40 changes: 0 additions & 40 deletions tests-build/tests/fail/macros_invalid_input.rs

This file was deleted.

71 changes: 0 additions & 71 deletions tests-build/tests/fail/macros_invalid_input.stderr

This file was deleted.

26 changes: 0 additions & 26 deletions tests-build/tests/fail/macros_type_mismatch.rs

This file was deleted.

45 changes: 0 additions & 45 deletions tests-build/tests/fail/macros_type_mismatch.stderr

This file was deleted.

27 changes: 0 additions & 27 deletions tests-build/tests/macros.rs

This file was deleted.

Loading

0 comments on commit b24df49

Please sign in to comment.