-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to CodeCov and speed up build (#19)
* Adds inch as a script * Make travis fail fast at format check * Inch Reports are made only for master and develop * This may not work! Because these branches recieve commits only via PRs. * Replace Coveralls with CodeCov * Improve exdocs layout
- Loading branch information
Showing
9 changed files
with
92 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "60...90" | ||
|
||
status: | ||
project: | ||
default: on | ||
patch: | ||
default: on | ||
changes: | ||
default: on | ||
|
||
codecov: | ||
branch: develop | ||
|
||
comment: | ||
layout: "header, reach, diff, flags, files, footer" | ||
behavior: default | ||
require_changes: no | ||
require_base: no | ||
require_head: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
bold=$(tput bold) | ||
purple='\e[106m' | ||
normal=$(tput sgr0) | ||
allowed_branches="^(master)|(develop)$" | ||
|
||
echo -e "${bold}${purple}" | ||
if [ $TRAVIS_PULL_REQUEST = false ]; then | ||
if [[ $TRAVIS_BRANCH =~ $allowed_branches ]]; then | ||
env MIX_ENV=docs mix deps.get | ||
env MIX_ENV=docs mix inch.report | ||
else | ||
echo "Skipping Inch CI report because this branch does not match on /$allowed_branches/" | ||
fi | ||
else | ||
echo "Skipping Inch CI report because this is a PR build" | ||
fi | ||
echo -e "${normal}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,28 @@ | ||
language: elixir | ||
elixir: | ||
- 1.5.3 | ||
- 1.6.2 | ||
|
||
otp_release: | ||
- 20.2 | ||
before_install: | ||
- mix local.hex --force | ||
- mix local.rebar --force | ||
- mix deps.get | ||
script: | ||
- mix coveralls.travis --umbrella | ||
- set -e | ||
- MIX_ENV=test mix format --check-formatted | ||
- set +e | ||
- mix coveralls.json --umbrella | ||
after_script: | ||
- mix deps.get --only docs | ||
- MIX_ENV=docs mix inch.report | ||
- bash <(curl -s https://codecov.io/bash) | ||
- bash .scripts/inch_report.sh | ||
|
||
matrix: | ||
include: | ||
- elixir: "1.5.3" | ||
script: | ||
- mix coveralls.json --umbrella | ||
- elixir: "1.6.2" | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters