Skip to content

Commit

Permalink
Re-Enable Travis via travis.com (#112)
Browse files Browse the repository at this point in the history
* Enable travis

* add build.r to re-enable try_from
  • Loading branch information
Peternator7 committed Sep 17, 2020
1 parent b517f23 commit 1d27788
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ rust:
- stable
- beta
- nightly
- 1.26.0
- 1.31.1
matrix:
allow_failures:
- rust: nightly
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
7 changes: 7 additions & 0 deletions strum_tests/build.rs
Original file line number Diff line number Diff line change
@@ -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");
}
}
16 changes: 1 addition & 15 deletions travis.sh
Original file line number Diff line number Diff line change
@@ -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 ..
cargo test --verbose

0 comments on commit 1d27788

Please sign in to comment.