1
0
mirror of https://github.com/danog/strum.git synced 2024-11-29 20:18:58 +01:00

Re-Enable Travis via travis.com (#112)

* Enable travis

* add build.r to re-enable try_from
This commit is contained in:
Peter Glotfelty 2020-09-17 11:21:41 -07:00 committed by GitHub
parent b517f232aa
commit 1d2778842b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 17 deletions

View File

@ -3,7 +3,7 @@ rust:
- stable
- beta
- nightly
- 1.26.0
- 1.31.1
matrix:
allow_failures:
- rust: nightly

View File

@ -1,8 +1,11 @@
# Strum
[![Build Status](https://travis-ci.org/Peternator7/strum.svg?branch=master)](https://travis-ci.org/Peternator7/strum)
[![Build Status](https://travis-ci.com/Peternator7/strum.svg?branch=master)](https://travis-ci.com/Peternator7/strum)
[![Build status](https://ci.appveyor.com/api/projects/status/ji4f6n2m5lvu11xt?svg=true)](https://ci.appveyor.com/project/Peternator7/strum)
[![Latest Version](https://img.shields.io/crates/v/strum.svg)](https://crates.io/crates/strum)
[![Rust Documentation](https://docs.rs/strum/badge.svg)](https://docs.rs/strum)
![Crates.io](https://img.shields.io/crates/l/strum)
![Crates.io](https://img.shields.io/crates/d/strum)
Strum is a set of macros and traits for working with enums and strings easier in Rust.

7
strum_tests/build.rs Normal file
View File

@ -0,0 +1,7 @@
fn main() {
// Check if version of rustc is >= 1.34
if let Some(true) = version_check::is_min_version("1.34.0") {
println!("cargo:rustc-cfg=try_from");
}
}

View File

@ -1,15 +1 @@
cd ./strum
cargo build --verbose
cargo test --verbose
cd ..
cd ./strum_tests
cargo build --verbose
cargo test --verbose
cd ..
cd ./strum_tests_rename
cargo build --verbose
cargo test --verbose
cd ..