aboutsummaryrefslogtreecommitdiff
path: root/shippable.yml
diff options
context:
space:
mode:
authorRoman Ivanov <ivanov-jr@mail.ru>2017-08-26 17:29:39 -0700
committerRoman Ivanov <ivanov-jr@mail.ru>2017-08-28 14:33:22 -0700
commit0ad1291f48ee9ff0598003a137775f940118141c (patch)
tree384a8ca11c818c43e407ba21750d0b28e2e10d52 /shippable.yml
parente51f945886bc6a8deba5d18ec0e8dfb158f9f86f (diff)
downloadcheckstyle-0ad1291f48ee9ff0598003a137775f940118141c.tar.gz
config: update shippable to fail if any survived is found in report
Diffstat (limited to 'shippable.yml')
-rw-r--r--shippable.yml31
1 files changed, 20 insertions, 11 deletions
diff --git a/shippable.yml b/shippable.yml
index 1184bc87d..372cac145 100644
--- a/shippable.yml
+++ b/shippable.yml
@@ -6,28 +6,28 @@ jdk:
env:
matrix:
- - PROFILE="-Ppitest-checkstyle-xpath,no-validations"
- - PROFILE="-Ppitest-checkstyle-filters,no-validations"
+ - PROFILE="-Ppitest-checkstyle-xpath,no-validations"; POST_ACTION=check_survived
+ - PROFILE="-Ppitest-checkstyle-filters,no-validations"; POST_ACTION=check_survived
- PROFILE="-Ppitest-checks-javadoc,no-validations"
- PROFILE="-Ppitest-checks-imports,no-validations"
- PROFILE="-Ppitest-checks-metrics,no-validations"
- PROFILE="-Ppitest-checks-regexp,no-validations"
- - PROFILE="-Ppitest-checks-sizes,no-validations"
+ - PROFILE="-Ppitest-checks-sizes,no-validations"; POST_ACTION=check_survived
- PROFILE="-Ppitest-checks-whitespace,no-validations"
- PROFILE="-Ppitest-checks-misc,no-validations"
- PROFILE="-Ppitest-checks-blocks,no-validations"
- PROFILE="-Ppitest-checks-coding,no-validations"
- PROFILE="-Ppitest-checks-design,no-validations"
- PROFILE="-Ppitest-checks-annotation,no-validations"
- - PROFILE="-Ppitest-checks-header,no-validations"
- - PROFILE="-Ppitest-checks-modifier,no-validations"
- - PROFILE="-Ppitest-checks-naming,no-validations"
+ - PROFILE="-Ppitest-checks-header,no-validations"; POST_ACTION=check_survived
+ - PROFILE="-Ppitest-checks-modifier,no-validations"; POST_ACTION=check_survived
+ - PROFILE="-Ppitest-checks-naming,no-validations"; POST_ACTION=check_survived
- PROFILE="-Ppitest-checks-indentation,no-validations"
- - PROFILE="-Ppitest-checkstyle-tree-walker,no-validations"
- - PROFILE="-Ppitest-checkstyle-common,no-validations"
- - PROFILE="-Ppitest-checkstyle-main,no-validations"
- - PROFILE="-Ppitest-checkstyle-api,no-validations"
- - PROFILE="-Ppitest-checkstyle-utils,no-validations"
+ - PROFILE="-Ppitest-checkstyle-tree-walker,no-validations"; POST_ACTION=check_survived
+ - PROFILE="-Ppitest-checkstyle-common,no-validations"; POST_ACTION=check_survived
+ - PROFILE="-Ppitest-checkstyle-main,no-validations"; POST_ACTION=check_survived
+ - PROFILE="-Ppitest-checkstyle-api,no-validations"; POST_ACTION=off_till_resolved
+ - PROFILE="-Ppitest-checkstyle-utils,no-validations"; POST_ACTION=off_till_resolved
- PROFILE="-Ppitest-checkstyle-gui,no-validations"
branches:
@@ -42,10 +42,19 @@ build:
ci:
# we skip PRs and commits that are not for Issues, as pitest is too time consuming
- |
+ set -e
SKIP_FILES="appveyor.yml|circle.yml|distelli-manifest.yml|.travis.yml|wercker.yml|fast-forward-merge.sh|LICENSE|LICENSE.apache20|README.md|release.sh|RIGHTS.antlr|intellij-idea-inspections.xml"
SKIP_CI=$(if [[ $(git diff --name-only HEAD HEAD~1 | grep -vE "$SKIP_FILES" | cat | wc -c) > 0 ]]; then echo false; else echo true; fi;)
echo "SKIP_CI="$SKIP_CI
+ echo "POST_ACTION="$POST_ACTION
if [[ $SKIP_CI == 'false' ]];
then
mvn $PROFILE clean verify org.pitest:pitest-maven:mutationCoverage;
+
+ if [[ $POST_ACTION == 'check_survived' && $(grep -RE "class='survived'" target/ | cat | wc -l) > 0 ]]; then
+ echo "Survived items:"$(grep -RE "class='survived'" target/ | cat)
+ echo "Survived items found in reports, build will be failed"
+ exit 1
+ fi
+
fi