Travis changes

• Modernise the Travis incantations, which have become old and faded since they were first written
• Specify a MSRV (1.42.0) and compile on more architectures
• Test the power set of features on Stable
This commit is contained in:
Benjamin Sago 2020-10-13 21:49:00 +01:00
parent 6eb5cee634
commit 31a2eba2fe

View File

@ -1,13 +1,19 @@
before_install:
- sudo add-apt-repository --yes ppa:kubuntu-ppa/backports
- sudo apt-get update -qq
- sudo apt-get install cmake
sudo: true
language: rust language: rust
rust: rust:
- 1.42.0
- stable - stable
- beta
- nightly
jobs:
fast_finish: true
allow_failures:
- rust: nightly
include:
- name: 'Rust: test with all features'
rust: stable
install:
- cargo install cargo-hack
script: script:
- cargo build --verbose - cargo hack test --feature-powerset
- cargo test --verbose
- cargo build --verbose --no-default-features
- cargo test --verbose --no-default-features