Skip to content

Commit

Permalink
itest
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 18, 2023
1 parent f60d342 commit 96883ac
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .rultor.yml
Expand Up @@ -19,6 +19,6 @@ release:
repo=yegor256/cam
sudo docker build --no-cache --tag "${repo}:${tag}" "$(pwd)"
mkdir /tmp/dataset
sudo docker run --rm "${repo}:${tag}" 'make test'
sudo docker run --rm "${repo}:${tag}" 'make env lint test'
cat ../docker-password | sudo docker login --password-stdin --username yegor256
sudo docker push "${repo}:${tag}"
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -32,4 +32,4 @@ runs:
args:
- '--login'
- '-c'
- 'export HOME=/cam; cd ${HOME}; . /root/.profile; make test'
- 'export HOME=/cam; cd ${HOME}; . /root/.profile; make env lint test'
18 changes: 15 additions & 3 deletions tests/steps/test-integration.sh
Expand Up @@ -26,10 +26,22 @@ set -o pipefail
stdout=$2

{
set -x
make clean "TARGET=${TARGET}"
make env
make lint
make "TARGET=${TARGET}" REPO=yegor256/tojos
log=$(make "TARGET=${TARGET}" "REPO=yegor256/tojos")
echo "${log}"
echo "${log}" | grep "Using one repo: yegor256/tojos"
echo "${log}" | grep "No repo directories inside"
echo "${log}" | grep "Cloned 1 repositories"
echo "${log}" | grep "All 1 repositories checked"
echo "${log}" | grep "All 1 repositories passed through jPeek"
echo "${log}" | grep "All metrics calculated"
echo "${log}" | grep "All metrics aggregated"
echo "${log}" | grep "PDF report generated"
echo "${log}" | grep "ZIP archive"
echo "${log}" | grep "SUCCESS"
echo "${log}" | grep -v "Failed to collect"
make validate "TARGET=${TARGET}"
set +x
} > "${stdout}" 2>&1
echo "👍🏻 A full package processed correctly"

0 comments on commit 96883ac

Please sign in to comment.