Skip to content

Commit

Permalink
Fixed permissions issues with GitLab CI runner
Browse files Browse the repository at this point in the history
Depending on the configuration of the runner (system mode / user mode) the CI
jobs could fail to create, write or delete the reports output directories.

It is fixed by previously creating such directories with 777 permisions.

Resolves: phundament#203
  • Loading branch information
david-sa committed May 25, 2016
1 parent 88d31d5 commit c3e3ab2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build/scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ docker-compose run --rm php climb || EXIT_CODE=1

# PHP source
docker-compose run --rm php vendor/bin/php-cs-fixer fix --format=txt -v --dry-run src || EXIT_CODE=1
docker run --rm -v "${PWD}:/project" jolicode/phaudit phpcpd src/
mkdir -p -m 777 "${PWD}/tests/_lint"
docker run --rm -v "${PWD}:/project" jolicode/phaudit phpmetrics --report-html=tests/_lint/metrics.html src/
docker run --rm -v "${PWD}:/project" jolicode/phaudit phpcpd src/ > tests/_lint/cpd.txt
docker run --rm -v "${PWD}:/project" jolicode/phaudit phploc src/ > tests/_lint/loc.txt
docker run --rm -v "${PWD}:/project" jolicode/phaudit phpmd src html cleancode,codesize,controversial,design,naming,unusedcode > tests/_lint/mess.html
docker run --rm -v "${PWD}:/project" jolicode/phaudit phpmetrics --report-html=tests/_lint/metrics.html src/

set +v

exit ${EXIT_CODE}
exit ${EXIT_CODE}
1 change: 1 addition & 0 deletions build/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ set -v

set +e

mkdir -p -m 777 "${PWD}/tests/codeception/_output/debug"
make TEST run-tests codecept_opts='functional,unit,cli,acceptance -g mandatory --html=_report_mandatory.html' || EXIT_CODE=1

exit ${EXIT_CODE}

0 comments on commit c3e3ab2

Please sign in to comment.