Skip to content

Commit

Permalink
Improve testing
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 5, 2019
1 parent 5d39048 commit a2109d1
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 11 deletions.
35 changes: 33 additions & 2 deletions .travis.yml
@@ -1,7 +1,20 @@
language: rust
sudo: false
cache: cargo

branches:
only:
- master
- staging
- trying

matrix:
fast_finish: true

allow_failures:
- rust: nightly
env: ALLOW_FAILURES=true

include:
- rust: 1.30.0
- rust: stable
Expand All @@ -10,14 +23,31 @@ matrix:
script:
- cargo test
- cargo test --all-features
- cargo doc --all-features --no-deps -p auto_enums -p auto_enums_core -p auto_enums_derive
- cd "${TRAVIS_BUILD_DIR}/test_suite"
- cargo test
- cargo test --no-default-features
- cargo test --all-features

- rust: nightly
name: cargo test (minimal versions)
env: ALLOW_FAILURES=true
script:
- cargo update -Zminimal-versions
- cargo test --all-features
- cd "${TRAVIS_BUILD_DIR}/test_suite"
- cargo test --all-features

- rust: nightly
name: cargo test (2018 edition)
script:
- cd "${TRAVIS_BUILD_DIR}/test_suite/tests_2018"
- cargo test --all-features

- rust: nightly
name: cargo doc
script:
- cargo doc --all-features --no-deps -p auto_enums -p auto_enums_core -p auto_enums_derive

before_script:
- set -o errexit

Expand All @@ -28,4 +58,5 @@ script:
- cargo test --no-default-features

notifications:
email: false
email:
on_success: never
1 change: 1 addition & 0 deletions bors.toml
@@ -0,0 +1 @@
status = ["continuous-integration/travis-ci/push"]
5 changes: 2 additions & 3 deletions test_suite/tests/test_auto_enum.rs
@@ -1,6 +1,5 @@
#![cfg_attr(feature = "unstable", feature(proc_macro_hygiene))]
#![cfg_attr(feature = "unstable", feature(stmt_expr_attributes))]
#![cfg_attr(feature = "unstable", feature(arbitrary_self_types, futures_api))]
#![cfg_attr(feature = "unstable", feature(proc_macro_hygiene, stmt_expr_attributes))]
#![cfg_attr(feature = "unstable", feature(futures_api))]
#![cfg_attr(feature = "unstable", feature(fn_traits, unboxed_closures))]
#![cfg_attr(feature = "unstable", feature(read_initializer))]
#![cfg_attr(feature = "unstable", feature(trusted_len))]
Expand Down
5 changes: 2 additions & 3 deletions test_suite/tests/test_enum_derive.rs
@@ -1,6 +1,5 @@
#![cfg_attr(feature = "unstable", feature(proc_macro_hygiene))]
#![cfg_attr(feature = "unstable", feature(stmt_expr_attributes))]
#![cfg_attr(feature = "unstable", feature(arbitrary_self_types, futures_api))]
#![cfg_attr(feature = "unstable", feature(proc_macro_hygiene, stmt_expr_attributes))]
#![cfg_attr(feature = "unstable", feature(futures_api))]
#![cfg_attr(feature = "unstable", feature(fn_traits, unboxed_closures))]
#![cfg_attr(feature = "unstable", feature(read_initializer))]
#![cfg_attr(feature = "unstable", feature(trusted_len))]
Expand Down
5 changes: 2 additions & 3 deletions test_suite/tests_2018/tests/test.rs
@@ -1,6 +1,5 @@
#![cfg_attr(feature = "unstable", feature(proc_macro_hygiene))]
#![cfg_attr(feature = "unstable", feature(stmt_expr_attributes))]
#![cfg_attr(feature = "unstable", feature(arbitrary_self_types, futures_api))]
#![cfg_attr(feature = "unstable", feature(proc_macro_hygiene, stmt_expr_attributes))]
#![cfg_attr(feature = "unstable", feature(futures_api))]
#![cfg_attr(feature = "unstable", feature(fn_traits, unboxed_closures))]
#![cfg_attr(feature = "unstable", feature(read_initializer))]
#![cfg_attr(feature = "unstable", feature(trusted_len))]
Expand Down

0 comments on commit a2109d1

Please sign in to comment.