From 34e64ceaefcd1395adf1974ea4dd9cb43b15970a Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sun, 15 Oct 2023 15:41:55 +0700 Subject: [PATCH] Remove old Travis CI scripts. (#732) These are unused since 2278ddacc648276034233b85955b385d44ce50b4. --- ci/install.sh | 23 ----------------------- ci/script.sh | 41 ----------------------------------------- 2 files changed, 64 deletions(-) delete mode 100644 ci/install.sh delete mode 100644 ci/script.sh diff --git a/ci/install.sh b/ci/install.sh deleted file mode 100644 index f82a80d8e..000000000 --- a/ci/install.sh +++ /dev/null @@ -1,23 +0,0 @@ -set -ex - -if [ "$CLIPPY" = "yes" ]; then - rustup component add clippy-preview -fi - -if [ "$RUSTFMT" = "yes" ]; then - rustup component add rustfmt -fi - - -if [ "$DOCS" = "yes" ]; then - cargo install mdbook --no-default-features - cargo install mdbook-linkcheck - sudo apt-get update - sudo apt-get install python-pip - sudo pip install python-dateutil -fi - -if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$GNUPLOT" = "yes" ]; then - brew unlink python@2 # because we're installing python3 and they both want to install stuff under /usr/local/Frameworks/Python.framework/ - brew install gnuplot -fi diff --git a/ci/script.sh b/ci/script.sh deleted file mode 100644 index b9f688696..000000000 --- a/ci/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -set -ex - -export CARGO_INCREMENTAL=0 - -FEATURES="async_smol async_tokio async_std async_futures" - -if [ "$CLIPPY" = "yes" ]; then - cargo clippy --all -- -D warnings -elif [ "$DOCS" = "yes" ]; then - cargo clean - cargo doc --features "$FEATURES" --all --no-deps - cd book - mdbook build - cd .. - cp -r book/book/html/ target/doc/book/ - travis-cargo doc-upload || true -elif [ "$RUSTFMT" = "yes" ]; then - cargo fmt --all -- --check -elif [ "$MINIMAL_VERSIONS" = "yes" ]; then - rm Cargo.lock || true - cargo build -Z minimal-versions -else - export RUSTFLAGS="-D warnings" - - cargo build --features "$FEATURES" $BUILD_ARGS - - cargo test --features "$FEATURES" --all - cargo test --features "$FEATURES" --benches - - cd bencher_compat - export CARGO_TARGET_DIR="../target" - cargo test --benches - cd .. - - if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then - cd macro - export CARGO_TARGET_DIR="../target" - cargo test --benches - cd .. - fi -fi