Run most of the CI testing as root.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-06-24 02:10:09 -05:00
parent 49b0a7636d
commit 9d61957295
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
2 changed files with 2 additions and 8 deletions

View File

@ -117,7 +117,7 @@ jobs :
run : |
chmod 777 tests/_output/
chmod 777 tests/_support/_generated
docker-compose run --rm --user="azuracast" web azuracast_ci_testing
docker-compose run --rm web azuracast_ci_testing
- name : Stop all running containers.
run : |

View File

@ -1,16 +1,10 @@
#!/usr/bin/env bash
if [ `whoami` != 'azuracast' ]; then
echo 'This script must be run as the "azuracast" user. Rerunning...'
setuser azuracast azuracast_ci_testing "$@"
exit $?
fi
set -ex
runsv /service/supervisord
cd /var/azuracast/www
composer run codeception-no-coverage
setuser azuracast composer run codeception-no-coverage
sv term /service/supervisord