From 533d2dd5f9c0df7420c81822a822a5ddcadcee5a Mon Sep 17 00:00:00 2001 From: Jon Gjengset Date: Tue, 3 Sep 2019 11:52:01 -0400 Subject: [PATCH] Move off of travis --- .travis.yml | 98 ----------------------------------------------------- 1 file changed, 98 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 920793d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,98 +0,0 @@ -language: rust -cache: cargo -rust: - - stable - - beta - - nightly -os: linux - -# always test things that aren't pushes (like PRs) -# never test tags or pushes to non-master branches (wait for PR) -# https://github.com/travis-ci/travis-ci/issues/2200#issuecomment-441395545) -if: type != push OR (tag IS blank AND branch = master) - -before_script: - - if [[ "$TRAVIS_BUILD_STAGE_NAME" == "Integration" || "$TRAVIS_BUILD_STAGE_NAME" == "Coverage" ]]; then - docker pull greenmail/standalone:1.5.9 && - docker run -d -e GREENMAIL_OPTS='-Dgreenmail.setup.test.all -Dgreenmail.hostname=0.0.0.0 -Dgreenmail.auth.disabled -Dgreenmail.verbose' -p 3025:3025 -p 3110:3110 -p 3143:3143 -p 3465:3465 -p 3993:3993 -p 3995:3995 greenmail/standalone:1.5.9; - fi - -# an entry in stage=test will be generated for each rust version. -# each entry will run these commands. -script: - - cargo test --examples - - cargo test --doc - - cargo test --lib -jobs: - allow_failures: - - rust: nightly - include: - - &check - stage: check # do a pre-screen to make sure this is even worth testing - script: cargo check --all-targets - rust: stable - # <1.24 doesn't work because of lazy-static 1.2.0 - # <1.26.2 doesn't work because of nom 4.1.1 - # <1.31.1 doesn't work because of rename-dependency - # <1.32.0 doesn't work because of associated items on type aliases - - <<: *check # also test oldest known-good stable - rust: 1.32.0 - - stage: test - rust: stable - os: osx - - rust: stable - os: windows - - &integration - stage: integration # make integration tests its own stage - script: cargo test --tests - sudo: required - services: - - docker - addons: - apt: - packages: - - libssl-dev - rust: stable - - <<: *integration - rust: beta - - <<: *integration - rust: nightly - - stage: lint # we lint on beta to future-proof - name: "Rust: beta, rustfmt" - rust: beta - script: - - rustup component add rustfmt-preview - - cargo fmt -v -- --check - - name: "Rust: nightly, rustfmt" # and on nightly with allow_fail - rust: nightly - script: - - rustup component add rustfmt-preview - - cargo fmt -v -- --check - - name: "Rust: beta, clippy" - rust: beta - script: - - rustup component add clippy-preview - - touch ./src/lib.rs && cargo clippy -- -D warnings - - name: "Rust: nightly, clippy" - rust: nightly - script: - - rustup component add clippy-preview - - touch ./src/lib.rs && cargo clippy -- -D warnings - - <<: *integration - stage: coverage - rust: nightly - env: CACHE_NAME=coverage - script: - - RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin || true - - cargo tarpaulin --out Xml - - bash <(curl -s https://codecov.io/bash) - - cargo clean -p imap # ensure we don't cache build for coverage -stages: - - check - - test - - integration - - lint - - coverage - -after_failure: - - if [[ "$TRAVIS_BUILD_STAGE_NAME" == "Integration" || "$TRAVIS_BUILD_STAGE_NAME" == "Coverage" ]]; then docker logs $(docker ps -q); fi