aboutsummaryrefslogtreecommitdiff
path: root/spake2/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to 'spake2/.travis.yml')
-rw-r--r--spake2/.travis.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/spake2/.travis.yml b/spake2/.travis.yml
new file mode 100644
index 0000000..3998753
--- /dev/null
+++ b/spake2/.travis.yml
@@ -0,0 +1,40 @@
+language: rust
+
+rust:
+ - stable
+ - beta
+ - nightly
+
+os:
+ - linux
+ - osx
+
+branches:
+ except:
+ - /^WIP-.*$/
+
+matrix:
+ include:
+ - rust: 1.26.0 # lock down for consistent rustfmt behavior
+ env: RUSTFMT
+ install:
+ - rustup component add rustfmt-preview
+ script:
+ - cargo fmt -- --write-mode=diff
+ allow_failures:
+ - rust: nightly
+
+script:
+ - cargo clean
+ - cargo build --verbose --all
+# - cargo run --verbose --example XYZ
+# - cargo test --verbose --features "test" --all
+ - cargo test --verbose --all
+
+after_success: |
+ if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
+ bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
+ # Uncomment the following two lines create and upload a report for codecov.io
+ cargo tarpaulin --out Xml
+ bash <(curl -s https://codecov.io/bash)
+ fi