aboutsummaryrefslogtreecommitdiff
path: root/shippable.yml
diff options
context:
space:
mode:
Diffstat (limited to 'shippable.yml')
-rw-r--r--shippable.yml75
1 files changed, 34 insertions, 41 deletions
diff --git a/shippable.yml b/shippable.yml
index 63c28d088..7b2587940 100644
--- a/shippable.yml
+++ b/shippable.yml
@@ -6,26 +6,26 @@ jdk:
env:
matrix:
- - PROFILE="-Ppitest-checkstyle-xpath,no-validations"; POST_ACTION=check_survived
- - PROFILE="-Ppitest-checkstyle-filters,no-validations"; POST_ACTION=check_survived
+ - PROFILE="-Ppitest-checkstyle-xpath,no-validations"; POST_ACTION=check_survived_uncovered
+ - PROFILE="-Ppitest-checkstyle-filters,no-validations"; POST_ACTION=check_survived_uncovered
- PROFILE="-Ppitest-checks-javadoc,no-validations"
- - PROFILE="-Ppitest-checks-imports,no-validations"; POST_ACTION=check_survived_imports
- - PROFILE="-Ppitest-checks-metrics,no-validations"
- - PROFILE="-Ppitest-checks-regexp,no-validations"; POST_ACTION=check_survived
- - PROFILE="-Ppitest-checks-sizes,no-validations"; POST_ACTION=check_survived
- - PROFILE="-Ppitest-checks-whitespace,no-validations"; POST_ACTION=check_survived_whitespace
- - PROFILE="-Ppitest-checks-misc,no-validations"; POST_ACTION=check_survived_misc
+ - PROFILE="-Ppitest-checks-imports,no-validations"; POST_ACTION=check_survived_uncovered
+ - PROFILE="-Ppitest-checks-metrics,no-validations"; POST_ACTION=check_survived_uncovered
+ - PROFILE="-Ppitest-checks-regexp,no-validations"; POST_ACTION=check_survived_uncovered
+ - PROFILE="-Ppitest-checks-sizes,no-validations"; POST_ACTION=check_survived_uncovered
+ - PROFILE="-Ppitest-checks-whitespace,no-validations"; POST_ACTION=check_survived
+ - PROFILE="-Ppitest-checks-misc,no-validations"; POST_ACTION=check_survived_uncovered
- PROFILE="-Ppitest-checks-blocks,no-validations"; POST_ACTION=check_survived_blocks
- PROFILE="-Ppitest-checks-coding,no-validations"; POST_ACTION=check_survived_coding
- - PROFILE="-Ppitest-checks-design,no-validations"; POST_ACTION=check_survived
- - PROFILE="-Ppitest-checks-annotation,no-validations"; POST_ACTION=check_survived
- - 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-design,no-validations"; POST_ACTION=check_survived_uncovered
+ - PROFILE="-Ppitest-checks-annotation,no-validations"; POST_ACTION=check_survived_uncovered
+ - PROFILE="-Ppitest-checks-header,no-validations"; POST_ACTION=check_survived_uncovered
+ - PROFILE="-Ppitest-checks-modifier,no-validations"; POST_ACTION=check_survived_uncovered
+ - PROFILE="-Ppitest-checks-naming,no-validations"; POST_ACTION=check_survived_uncovered
- PROFILE="-Ppitest-checks-indentation,no-validations"
- - PROFILE="-Ppitest-checkstyle-tree-walker,no-validations"; POST_ACTION=check_survived
+ - PROFILE="-Ppitest-checkstyle-tree-walker,no-validations"; POST_ACTION=check_survived_uncovered
- PROFILE="-Ppitest-checkstyle-common,no-validations"; POST_ACTION=check_survived
- - PROFILE="-Ppitest-checkstyle-main,no-validations"; POST_ACTION=check_survived
+ - PROFILE="-Ppitest-checkstyle-main,no-validations"; POST_ACTION=check_survived_uncovered
- PROFILE="-Ppitest-checkstyle-api,no-validations"; POST_ACTION=check_survived
- PROFILE="-Ppitest-checkstyle-utils,no-validations"; POST_ACTION=check_survived
- PROFILE="-Ppitest-checkstyle-gui,no-validations"
@@ -43,31 +43,24 @@ build:
# 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|org.eclipse.jdt.core.prefs"
+ SKIP_FILES="appveyor.yml|circle.yml|distelli-manifest.yml|.travis.yml|wercker.yml|wercker.sh|fast-forward-merge.sh|LICENSE|LICENSE.apache20|README.md|release.sh|RIGHTS.antlr|intellij-idea-inspections.xml|org.eclipse.jdt.core.prefs"
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;
+ mvn -e $PROFILE clean verify org.pitest:pitest-maven:mutationCoverage;
- if [[ $POST_ACTION == 'check_survived' && $(grep -RE "class='survived'" target/ | cat | wc -l) > 0 ]]; then
+ if [[ $POST_ACTION == 'check_survived_uncovered' \
+ && ( $(grep -RE "class='survived'" target/ | cat | wc -l) > 0 \
+ || $(grep -RE "class='uncovered'" 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
- if [[ $POST_ACTION == 'check_survived_whitespace' && $(grep -RE "class='survived'" --exclude="NoWhitespaceAfterCheck.*" --exclude="ParenPadCheck.*" --exclude="SingleSpaceSeparatorCheck.*" target/ | cat | wc -l) > 0 ]]; then
- echo "Survived items:"$(grep -RE "class='survived'" --exclude="NoWhitespaceAfterCheck.*" --exclude="ParenPadCheck.*" --exclude="SingleSpaceSeparatorCheck.*" target/ | cat)
- echo "Survived items found in reports, build will be failed"
+ echo "Uncovered items:"$(grep -RE "class='uncovered'" target/ | cat)
+ echo "Survived/Uncovered items found in reports, build will be failed"
exit 1
fi
- if [[ $POST_ACTION == 'check_survived_imports' && $(grep -RE "class='survived'" --exclude="CustomImportOrderCheck.*" target/ | cat | wc -l) > 0 ]]; then
- echo "Survived items:"$(grep -RE "class='survived'" --exclude="CustomImportOrderCheck.*" --exclude="ImportOrderCheck.*" target/ | cat)
- echo "Survived items found in reports, build will be failed"
- exit 1
- fi
- if [[ $POST_ACTION == 'check_survived_misc' && $(grep -RE "class='survived'" --exclude="TranslationCheck.*" target/ | cat | wc -l) > 0 ]]; then
- echo "Survived items:"$(grep -RE "class='survived'" --exclude="TranslationCheck.*" target/ | cat)
+ 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
@@ -77,17 +70,17 @@ build:
exit 1
fi
if [[ $POST_ACTION == 'check_survived_coding'
- && $(grep -RE "class='survived'" --exclude="AbstractSuperCheck.*" --exclude="DeclarationOrderCheck.*" --exclude="EqualsAvoidNullCheck.*" \
- --exclude="EqualsHashCodeCheck.*" --exclude="FallThroughCheck.*" --exclude="HiddenFieldCheck.*" --exclude="IllegalInstantiationCheck.*" \
- --exclude="IllegalTokenTextCheck.*" --exclude="IllegalTypeCheck.*" --exclude="MagicNumberCheck.*" --exclude="ModifiedControlVariableCheck.*" \
- --exclude="MultipleStringLiteralsCheck.*" --exclude="MultipleVariableDeclarationsCheck.*" --exclude="NestedForDepthCheck.*" \
- --exclude="OneStatementPerLineCheck.*" --exclude="ParameterAssignmentCheck.*" --exclude="RequireThisCheck.*" --exclude="ReturnCountCheck.*" \
+ && $(grep -RE "class='survived'" --exclude="EqualsAvoidNullCheck.*" \
+ --exclude="FallThroughCheck.*" --exclude="HiddenFieldCheck.*" --exclude="IllegalInstantiationCheck.*" \
+ --exclude="IllegalTypeCheck.*" \
+ --exclude="MultipleVariableDeclarationsCheck.*" \
+ --exclude="RequireThisCheck.*" \
--exclude="UnnecessaryParenthesesCheck.*" --exclude="VariableDeclarationUsageDistanceCheck.*" target/ | cat | wc -l) > 0 ]]; then
- echo "Survived items:"$(grep -RE "class='survived'" --exclude="AbstractSuperCheck.*" --exclude="DeclarationOrderCheck.*" --exclude="EqualsAvoidNullCheck.*" \
- --exclude="EqualsHashCodeCheck.*" --exclude="FallThroughCheck.*" --exclude="HiddenFieldCheck.*" --exclude="IllegalInstantiationCheck.*" \
- --exclude="IllegalTokenTextCheck.*" --exclude="IllegalTypeCheck.*" --exclude="MagicNumberCheck.*" --exclude="ModifiedControlVariableCheck.*" \
- --exclude="MultipleStringLiteralsCheck.*" --exclude="MultipleVariableDeclarationsCheck.*" --exclude="NestedForDepthCheck.*" \
- --exclude="OneStatementPerLineCheck.*" --exclude="ParameterAssignmentCheck.*" --exclude="RequireThisCheck.*" --exclude="ReturnCountCheck.*" \
+ echo "Survived items:"$(grep -RE "class='survived'" --exclude="EqualsAvoidNullCheck.*" \
+ --exclude="FallThroughCheck.*" --exclude="HiddenFieldCheck.*" --exclude="IllegalInstantiationCheck.*" \
+ --exclude="IllegalTypeCheck.*" \
+ --exclude="MultipleVariableDeclarationsCheck.*" \
+ --exclude="RequireThisCheck.*" \
--exclude="UnnecessaryParenthesesCheck.*" --exclude="VariableDeclarationUsageDistanceCheck.*" target/ | cat)
echo "Survived items found in reports, build will be failed"
exit 1