Skip to content

Commit

Permalink
Issue #7892: add empty .ci-temp validation
Browse files Browse the repository at this point in the history
  • Loading branch information
nrmancuso authored and rnveach committed Apr 25, 2020
1 parent bdd2a47 commit 76309cf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .ci/wercker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,19 @@ no-warning-imports-java-design-patterns)
fi
;;

validate-ci-temp-empty)
fail=0
if [ -z "$(ls -A .ci-temp)" ]; then
echo "Empty .ci-temp/ validation did not find any warnings."
else
echo "Directory .ci-temp/ is not empty. Verification failed."
echo "Contents of .ci-temp/:"
fail=1
fi
ls -A .ci-temp --color=auto
exit $fail
;;

*)
echo "Unexpected argument: $1"
sleep 5s
Expand Down
13 changes: 10 additions & 3 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,15 +334,22 @@ build:
echo "build is skipped ..."
fi
- script:
name: Empty .ci-temp validation
code: |
if [[ $RUN_JOB == 1 ]]; then
echo "Command: ./.ci/wercker.sh validate-ci-temp-empty"
./.ci/wercker.sh validate-ci-temp-empty
else
echo "build is skipped ..."
fi
- script:
name: Cleanup maven local repo
code: |
echo "git status"
git status
echo "------"
echo "Content of .ci-temp folder:"
ls -la .ci-temp | cat
echo "------"
find ${WERCKER_CACHE_DIR} -type d -name "*SNAPSHOT" -ls -exec rm -rf {} +
echo "------"
du -hs ${WERCKER_CACHE_DIR}
Expand Down

0 comments on commit 76309cf

Please sign in to comment.