diff --git a/Jenkinsfile b/Jenkinsfile index d618485..42dc97f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,7 +15,7 @@ echo "Building for Linux" sh "python ./build.py" echo "Testing for Linux" - sh ". ./env.sh; dobuild; domut_ci; dotest_ci" + sh ". ./env.sh; dobuild && domut_ci && dotest_ci" sh "mv NewLang.pyz NewLang.linux.pyz" archiveArtifacts artifacts: 'NewLang.linux.pyz', fingerprint: true cleanWs cleanWhenAborted: false, cleanWhenFailure: false, cleanWhenNotBuilt: false, cleanWhenUnstable: false diff --git a/env.sh b/env.sh index 6ff1600..e6b412e 100644 --- a/env.sh +++ b/env.sh @@ -34,5 +34,5 @@ docheck() { dotidy && dolint && dotest; } _envsh_domut() { mutmut run --paths-to-mutate "src/token.py,src/tokenize.py,src/parse.py" $@; } domut() { _envsh_domut; } -domut_ci() { _envsh_domut --no-progress; } +domut_ci() { _envsh_domut --no-progress || (mutmut results; exit 1); } dobuild() { python build.py; }