Skip to content

Commit 51d51ac

Browse files
author
Robin McCorkell
committed
Add TravisCI and Crates.io badge
1 parent 9f8c6f2 commit 51d51ac

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: rust
2+
rust:
3+
- stable
4+
- beta
5+
- nightly
6+
matrix:
7+
allow_failures:
8+
- rust: nightly
9+
include:
10+
- rust: nightly-2017-08-30
11+
before_script:
12+
- cargo install clippy --vers 0.0.155
13+
- cargo install rustfmt --vers 0.9.0
14+
script:
15+
- cargo clippy -- -D warnings
16+
- cargo fmt -- --write-mode diff

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ homepage = "https://github.com/Metaswitch/assert-type-eq-rs"
88
repository = "https://github.com/Metaswitch/assert-type-eq-rs"
99
readme = "README.md"
1010

11+
[badges.travis-ci]
12+
repository = "Metaswitch/assert-type-eq-rs"
13+
1114
[dependencies]

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
assert-type-eq
22
==============
33

4+
[![Build Status](https://travis-ci.org/Metaswitch/assert-type-eq-rs.svg?branch=master)](https://travis-ci.org/Metaswitch/assert-type-eq-rs)
5+
[![crates.io](https://img.shields.io/crates/v/assert-type-eq.svg)](https://crates.io/crates/assert-type-eq)
6+
47
This Rust crate adds a macro to assert at compile time that certain types are
58
the same. This is useful when using the same crate via different dependencies,
69
which may bring in different versions of the same crate, which Rust considers

0 commit comments

Comments
 (0)