Skip to content

Commit

Permalink
Refactored CI config scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Dec 15, 2022
1 parent 0bd12b7 commit 4cae7fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ jobs:
- run: sed -i "s|JDK_home|$JAVA_HOME|g" ci-toolchains.xml

# run tests!
- run: mvn --batch-mode test jacoco:report -t ci-toolchains.xml
- run: mvn --batch-mode test jacoco:report -t ci-toolchains.xml

# check test results
- run: sh src/main/config/checktests.sh

# update codecov
- run: bash <(curl -s https://codecov.io/bash)

- run: sh src/main/config/countfiles.sh
deployment:
docker:
# specify the version you desire here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# find ~/repo/./target/surefire-reports -iname "*.txt" -exec grep -Li "Failures: 0" {} \+
number_of_failures=`grep -L -r -i "Failures: 0" ~/repo/./target/surefire-reports/*.txt | wc -l`
if [ "$number_of_failures" -ne "0" ]; then
echo $number_of_failures
echo $number_of_failures files with failures.
exit 2
fi
number_of_errors=`grep -L -r -i "Errors: 0" ~/repo/./target/surefire-reports/*.txt | wc -l`
if [ "$number_of_errors" -ne "0" ]; then
echo $number_of_errors files with errors.
exit 2
fi

0 comments on commit 4cae7fb

Please sign in to comment.