Browse Source

Add code coverage reporting via codecov.io to travis-ci

admin-impl
Kevin Hoerr 1 year ago
parent
commit
0c1dce106e
Signed by: kjhoerr GPG Key ID: 78E4BD33ACC22C86
2 changed files with 15 additions and 1 deletions
  1. +14
    -0
      .travis.yml
  2. +1
    -1
      README.md

+ 14
- 0
.travis.yml View File

@ -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

+ 1
- 1
README.md View File

@ -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.


Loading…
Cancel
Save