Skip to content

Commit c703245

Browse files
committed
Add Travis
1 parent 2ee6d53 commit c703245

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: rust
2+
os:
3+
- osx
4+
- windows
5+
- linux
6+
rust:
7+
- stable
8+
- beta
9+
- nightly
10+
cache: cargo
11+
before_script:
12+
- if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then rustup component add rustfmt clippy; fi
13+
script:
14+
- cargo build
15+
- cargo test --all
16+
- if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then cargo fmt --all -- --check; fi
17+
- if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then cargo clippy -- -D warnings; fi
18+
19+
# See https://levans.fr/rust_travis_cache.html
20+
cache:
21+
directories:
22+
- /home/travis/.cargo
23+
before_cache:
24+
- rm -rf /home/travis/.cargo/registry
25+

0 commit comments

Comments
 (0)