Run most of the CI testing as root.
This commit is contained in:
parent
49b0a7636d
commit
9d61957295
|
@ -117,7 +117,7 @@ jobs :
|
||||||
run : |
|
run : |
|
||||||
chmod 777 tests/_output/
|
chmod 777 tests/_output/
|
||||||
chmod 777 tests/_support/_generated
|
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.
|
- name : Stop all running containers.
|
||||||
run : |
|
run : |
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/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
|
set -ex
|
||||||
|
|
||||||
runsv /service/supervisord
|
runsv /service/supervisord
|
||||||
|
|
||||||
cd /var/azuracast/www
|
cd /var/azuracast/www
|
||||||
composer run codeception-no-coverage
|
setuser azuracast composer run codeception-no-coverage
|
||||||
|
|
||||||
sv term /service/supervisord
|
sv term /service/supervisord
|
||||||
|
|
Loading…
Reference in New Issue