Only run example tests on a single Travis config

This commit is contained in:
Guy Taylor
2019-02-21 20:37:19 +00:00
parent b96cfcd66a
commit b6644892df

View File

@@ -22,6 +22,7 @@ rust:
stages:
- name: test
- name: examples
- name: lint
- name: coverage
@@ -31,8 +32,6 @@ install: true
script:
- cargo build
- cargo test
- cargo build --manifest-path examples/drive_example/Cargo.toml
- cargo build --manifest-path examples/service_account/Cargo.toml
- cargo test --no-default-features --features no-openssl
jobs:
@@ -47,6 +46,13 @@ jobs:
- cargo fmt --all -- --check
- cargo clippy --all-targets --all-features -- -D warnings || true
- stage: examples
if: os = linux
rust: stable
script:
- cargo build --manifest-path examples/drive_example/Cargo.toml
- cargo build --manifest-path examples/service_account/Cargo.toml
- stage: coverage
if: os = linux
sudo: true