Skip to content

Commit

Permalink
Update .travis.yml to be templated
Browse files Browse the repository at this point in the history
  • Loading branch information
antifuchs committed Oct 18, 2018
1 parent 670f78a commit 3fb638d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
31 changes: 13 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
dist: trusty
# TemplateCIConfig { bench: BenchEntry { run: true, version: "stable", allow_failure: false }, clippy: ClippyEntry { run: true, version: "nightly", allow_failure: false }, rustfmt: RustfmtEntry { run: true, version: "stable", allow_failure: false }, os: "linux", dist: "xenial", versions: ["stable", "beta", "nightly"] }os:
- "linux"
dist: "xenial"

language: rust
sudo: required
cache: cargo
Expand All @@ -8,38 +11,31 @@ rust:
- beta
- nightly

os:
- linux

env:
global:
- CRATE_NAME=fibonacci_codec
- DEPLOY_VERSION=stable
- RUN_TEST=true
- RUN_CLIPPY=false
- RUN_BENCH=false
- RUSTFMT_VERSION=0.3.6

matrix:
fast_finish: true # Don't wait for the clippy build - it takes forever /:
fast_finish: true
include:
- rust: stable
- &rustfmt_build
rust: "stable"
env:
- RUN_RUSTFMT=true
- RUN_TEST=false
- rust: stable
env:
- RUN_BENCH=true
- RUN_TEST=false
- rust: nightly
- &bench_build
rust: "stable"
env:
- RUN_CLIPPY=true
- RUN_BENCHMARK=true
- RUN_TEST=false
allow_failures:
- rust: nightly
- &clippy_build
rust: "nightly"
env:
- RUN_CLIPPY=true
- RUN_TEST=false
allow_failures: []

before_script:
- bash -c 'if [[ "$RUN_RUSTFMT" == "true" ]]; then
Expand All @@ -52,7 +48,6 @@ before_script:
;
fi'


script:
- bash -c 'if [[ "$RUN_TEST" == "true" ]]; then
cargo test
Expand Down
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ tag-message = "Release {{prefix}}{{version}}"
dev-version-ext = "dev"
tag-prefix = "v"

[package.metadata.template_ci.clippy]
allow_failure = false

[package.metadata.template_ci.bench]
run = true
version = "stable"

[dependencies]
num = "0.1.42"
bit-vec = "0.4.4"
Expand Down

0 comments on commit 3fb638d

Please sign in to comment.