Only require sudo for integration tests
This commit is contained in:
parent
481ace22a6
commit
d5076883c5
1 changed files with 13 additions and 18 deletions
31
.travis.yml
31
.travis.yml
|
|
@ -1,11 +1,4 @@
|
||||||
language: rust
|
language: rust
|
||||||
sudo: required
|
|
||||||
dist: trusty
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libssl-dev
|
|
||||||
|
|
||||||
cache: cargo
|
cache: cargo
|
||||||
rust:
|
rust:
|
||||||
- stable
|
- stable
|
||||||
|
|
@ -16,8 +9,6 @@ os:
|
||||||
- osx
|
- osx
|
||||||
- windows
|
- windows
|
||||||
|
|
||||||
services:
|
|
||||||
- docker
|
|
||||||
before_script:
|
before_script:
|
||||||
- if [[ "$INTEGRATION" == "true" ]]; then
|
- if [[ "$INTEGRATION" == "true" ]]; then
|
||||||
docker pull greenmail/standalone:1.5.8 &&
|
docker pull greenmail/standalone:1.5.8 &&
|
||||||
|
|
@ -38,19 +29,23 @@ jobs:
|
||||||
script: cargo check --all-targets
|
script: cargo check --all-targets
|
||||||
rust: stable
|
rust: stable
|
||||||
os: linux
|
os: linux
|
||||||
- stage: integration # make integration tests its own stage
|
- &integration
|
||||||
|
stage: integration # make integration tests its own stage
|
||||||
script: cargo test --tests
|
script: cargo test --tests
|
||||||
|
sudo: required
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libssl-dev
|
||||||
env: INTEGRATION=true
|
env: INTEGRATION=true
|
||||||
rust: stable
|
rust: stable
|
||||||
os: linux
|
os: linux
|
||||||
- script: cargo test --tests # it's a little sad we have to enumerate here
|
- <<: *integration
|
||||||
env: INTEGRATION=true
|
|
||||||
rust: beta
|
rust: beta
|
||||||
os: linux
|
- <<: *integration
|
||||||
- script: cargo test --tests
|
|
||||||
env: INTEGRATION=true
|
|
||||||
rust: nightly
|
rust: nightly
|
||||||
os: linux
|
|
||||||
- stage: lint # we lint on beta to future-proof
|
- stage: lint # we lint on beta to future-proof
|
||||||
name: "Rust: beta, rustfmt"
|
name: "Rust: beta, rustfmt"
|
||||||
rust: beta
|
rust: beta
|
||||||
|
|
@ -76,9 +71,9 @@ jobs:
|
||||||
script:
|
script:
|
||||||
- rustup component add clippy-preview
|
- rustup component add clippy-preview
|
||||||
- touch ./src/lib.rs && cargo clippy -- -D warnings
|
- touch ./src/lib.rs && cargo clippy -- -D warnings
|
||||||
- stage: coverage
|
- <<: *integration
|
||||||
|
stage: coverage
|
||||||
rust: nightly
|
rust: nightly
|
||||||
os: linux
|
|
||||||
env: CACHE_NAME=coverage INTEGRATION=true
|
env: CACHE_NAME=coverage INTEGRATION=true
|
||||||
script:
|
script:
|
||||||
- RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
|
- RUSTFLAGS="--cfg procmacro2_semver_exempt" cargo install cargo-tarpaulin
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue