aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2019-11-04 12:53:53 -0500
committerKevin J Hoerr <kjhoerr@protonmail.com>2019-11-04 12:53:53 -0500
commit0c1dce106e0fb211cb52b2a780febd2a1b5f0a47 (patch)
tree63820ed8f119908461edc3428913f80a1cf719b1
parentb3f29e2158b09c2dcfb01e22f814bc9e39fd84c9 (diff)
downloadaugust-offensive-0c1dce106e0fb211cb52b2a780febd2a1b5f0a47.tar.gz
august-offensive-0c1dce106e0fb211cb52b2a780febd2a1b5f0a47.tar.bz2
august-offensive-0c1dce106e0fb211cb52b2a780febd2a1b5f0a47.zip
Add code coverage reporting via codecov.io to travis-ci
-rw-r--r--.travis.yml14
-rw-r--r--README.md2
2 files changed, 15 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 2894055..04ebecf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,6 +10,20 @@ matrix:
- rust: nightly
fast_finish: true
+before_cache:
+ - |
+ if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
+ cargo install -f cargo-tarpaulin
+ fi
+before_script:
+ - export PATH="$PATH:~/.cargo/bin"
script:
- cargo build --verbose --all
- cargo test --verbose --all
+after_success:
+ - |
+ if [[ "$TRAVIS_RUST_VERSION" == "stable" ]]; then
+ cargo tarpaulin --out Xml
+ bash <(curl -s https://codecov.io/bash)
+ echo "Uploaded code coverage"
+ fi \ No newline at end of file
diff --git a/README.md b/README.md
index ac4128f..55266f2 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
# August Offensive
-[![Build Status](https://travis-ci.org/kjhoerr/august-offensive.svg?branch=master)](https://travis-ci.org/kjhoerr/august-offensive)
+[![Build Status](https://travis-ci.org/kjhoerr/august-offensive.svg?branch=master)](https://travis-ci.org/kjhoerr/august-offensive) [![codecov](https://codecov.io/gh/kjhoerr/august-offensive/branch/master/graph/badge.svg)](https://codecov.io/gh/kjhoerr/august-offensive)
August Offensive is a game as a web service that enables players to achieve world domination in turn-based strategy. Players as Allegiances can generate armies, gain control of regions, and defeat their enemies. The Allegiance that controls all of the regions around the world claims victory of the August Offensive.