Skip to content

Commit 6ac6a39

Browse files
committed
Add travis.yml config
1 parent 290fc79 commit 6ac6a39

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: rust
2+
cache: cargo
3+
rust:
4+
- nightly
5+
- stable
6+
- beta
7+
os:
8+
- osx
9+
10+
11+
before_script:
12+
- rustup component add rustfmt-preview
13+
- rustfmt --version
14+
15+
script:
16+
- cargo build --verbose
17+
- cargo test --verbose
18+
- if [ "${TRAVIS_RUST_VERSION}" = "nightly" ]; then
19+
cargo fmt -- --write-mode=diff;
20+
else
21+
echo "Not checking formatting on this build";
22+
fi
23+
24+
notifications:
25+
email:
26+
on_success: never
27+
on_failure: never

0 commit comments

Comments
 (0)