diff options
author | Guillaume Pasquet <dev@etenil.net> | 2019-11-18 05:47:03 +0000 |
---|---|---|
committer | Guillaume Pasquet <dev@etenil.net> | 2019-11-18 05:47:03 +0000 |
commit | 7021bc853211a60970455496109634036806e294 (patch) | |
tree | 6df03eadb3f45c55ce6307ffb3defd7b88994077 | |
parent | b6671581897a5ee2397f7788cb3b37657e44757b (diff) |
Added CI
-rw-r--r-- | .travis.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2bb0925 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +branches: + only: + - master + +language: rust + +rust: + - stable + - nightly + +os: + - linux + - windows + - osx + +git: + depth: 1 + quiet: true + +before_script: + - export PATH=$PATH:/home/travis/.cargo/bin + - rustup component add rustfmt + +script: + - cargo fmt --version + - rustup --version + - rustc --version + - if [ "$TRAVIS_RUST_VERSION" = "stable" ]; then cargo fmt --all -- --check; fi + - cargo build + - cargo test -- --nocapture --test-threads 1 |