File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 44
55export version=" $1 "
66db=${2:- install}
7- phpversion=" ${3} "
7+ phpversion=" ${3:- 8.1} "
8+ # If this script is called from unit-tests.sh, we use the test environment
9+ export APP_ENV=" ${4:- prod} "
810
9- MYSQL_ROOT_PASSWORD= ${MYSQL_ROOT_PASSWORD :- root}
11+ show_phpinfo $version
1012
11- # If this script is called from unit-tests.sh, we use the test environment
12- export APP_ENV=" ${3:- prod} "
13+ MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:- root}
1314
1415# In the test environment, we need to use a different database
1516[ " $APP_ENV " = " prod" ] && DATABASE_NAME=domjudge || DATABASE_NAME=domjudge_test
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ export version=$1
88unittest=$2
99[ " $version " = " 8.1" ] && CODECOVERAGE=1 || CODECOVERAGE=0
1010
11- show_phpinfo $version
12-
1311# Set up
1412export unit=1
1513
Original file line number Diff line number Diff line change 5151 - name : pstree
5252 run : pstree -p
5353 - name : Install DOMjudge
54- run : .github/jobs/baseinstall.sh unit install test
54+ run : .github/jobs/baseinstall.sh unit install ${{ matrix.PHPVERSION }} test
5555 - name : Check nginx
5656 run : curl -v https://localhost/domjudge/
5757 - name : Run the unit-tests
You can’t perform that action at this time.
0 commit comments