From 5865d24bb166a40ced4dcacd5384b8c0bdd46448 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 5 Jun 2020 17:23:07 +0200 Subject: [PATCH] Remove ruma-common/.builds --- ruma-common/.builds/beta.yml | 27 --------------------------- ruma-common/.builds/msrv.yml | 16 ---------------- ruma-common/.builds/nightly.yml | 32 -------------------------------- ruma-common/.builds/stable.yml | 29 ----------------------------- 4 files changed, 104 deletions(-) delete mode 100644 ruma-common/.builds/beta.yml delete mode 100644 ruma-common/.builds/msrv.yml delete mode 100644 ruma-common/.builds/nightly.yml delete mode 100644 ruma-common/.builds/stable.yml diff --git a/ruma-common/.builds/beta.yml b/ruma-common/.builds/beta.yml deleted file mode 100644 index 6ee1445f..00000000 --- a/ruma-common/.builds/beta.yml +++ /dev/null @@ -1,27 +0,0 @@ -image: archlinux -packages: - - rustup -sources: - - https://github.com/ruma/ruma-common -tasks: - - rustup: | - # We specify --profile minimal because we'd otherwise download docs - rustup toolchain install beta --profile minimal -c rustfmt -c clippy - rustup default beta - - test: | - cd ruma-common - - # We don't want the build to stop on individual failure of independent - # tools, so capture tool exit codes and set the task exit code manually - set +e - - cargo fmt -- --check - fmt_exit=$? - - cargo clippy --all-targets --all-features -- -D warnings - clippy_exit=$? - - cargo test --verbose - test_exit=$? - - exit $(( $fmt_exit || $clippy_exit || $test_exit )) diff --git a/ruma-common/.builds/msrv.yml b/ruma-common/.builds/msrv.yml deleted file mode 100644 index 877ee72c..00000000 --- a/ruma-common/.builds/msrv.yml +++ /dev/null @@ -1,16 +0,0 @@ -image: archlinux -packages: - - rustup -sources: - - https://github.com/ruma/ruma-common -tasks: - - rustup: | - # We specify --profile minimal because we'd otherwise download docs - rustup toolchain install 1.40.0 --profile minimal - rustup default 1.40.0 - - test: | - cd ruma-common - - # Only make sure the code builds with the MSRV. Tests can require later - # Rust versions, don't compile or run them. - cargo build --verbose diff --git a/ruma-common/.builds/nightly.yml b/ruma-common/.builds/nightly.yml deleted file mode 100644 index 42b167f6..00000000 --- a/ruma-common/.builds/nightly.yml +++ /dev/null @@ -1,32 +0,0 @@ -image: archlinux -packages: - - rustup -sources: - - https://github.com/ruma/ruma-common -tasks: - - rustup: | - rustup toolchain install nightly --profile minimal - rustup default nightly - - # Try installing rustfmt & clippy for nightly, but don't fail the build - # if they are not available - rustup component add rustfmt || true - rustup component add clippy || true - - test: | - cd ruma-common - - # We don't want the build to stop on individual failure of independent - # tools, so capture tool exit codes and set the task exit code manually - set +e - - if ( rustup component list | grep -q rustfmt ); then - cargo fmt -- --check - fi - fmt_exit=$? - - if ( rustup component list | grep -q clippy ); then - cargo clippy --all-targets --all-features -- -D warnings - fi - clippy_exit=$? - - exit $(( $fmt_exit || $clippy_exit )) diff --git a/ruma-common/.builds/stable.yml b/ruma-common/.builds/stable.yml deleted file mode 100644 index 60d31426..00000000 --- a/ruma-common/.builds/stable.yml +++ /dev/null @@ -1,29 +0,0 @@ -image: archlinux -packages: - - rustup -sources: - - https://github.com/ruma/ruma-common -tasks: - - rustup: | - # We specify --profile minimal because we'd otherwise download docs - rustup toolchain install stable --profile minimal -c rustfmt -c clippy - rustup default stable - - test: | - cd ruma-common - - # We don't want the build to stop on individual failure of independent - # tools, so capture tool exit codes and set the task exit code manually - set +e - - cargo fmt -- --check - fmt_exit=$? - - cargo clippy --all-targets --all-features -- -D warnings - clippy_exit=$? - - cargo test --verbose - test_exit=$? - - exit $(( $fmt_exit || $clippy_exit || $test_exit )) - # TODO: Add audit task once cargo-audit binary releases are available. - # See https://github.com/RustSec/cargo-audit/issues/66