File tree Expand file tree Collapse file tree 6 files changed +12
-4
lines changed Expand file tree Collapse file tree 6 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ export PHPVERSION
12
12
13
13
section_start " Run composer"
14
14
export APP_ENV=" dev"
15
+ cd webapp
15
16
composer install --no-scripts | tee " $ARTIFACTS " /composer_out.txt
17
+ cd ..
16
18
section_end
17
19
18
20
section_start " Set simple admin password"
Original file line number Diff line number Diff line change @@ -48,5 +48,6 @@ echo "$PHPVERSION" | tee -a "$ARTIFACTS"/phpversion.txt
48
48
section_end
49
49
50
50
section_start " Run composer"
51
+ cd webapp
51
52
composer install --no-scripts 2>&1 | tee -a " $ARTIFACTS /composer_log.txt"
52
53
section_end
Original file line number Diff line number Diff line change 41
41
42
42
- name : Install composer files
43
43
if : ${{ contains(env.COMPILED, matrix.language) }}
44
- run : composer install --no-scripts
44
+ run : |
45
+ cd webapp
46
+ composer install --no-scripts
45
47
46
48
- name : Configure Makefile
47
49
if : ${{ contains(env.COMPILED, matrix.language) }}
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ parameters:
55
55
domjudge.baseurl: http://localhost/domjudge
56
56
EOF
57
57
58
+ # Composer steps
59
+ cd webapp
58
60
# install check if the cache might be dirty
59
61
set +e
60
62
composer install --no-scripts || rm -rf lib/vendor
63
65
# install all php dependencies
64
66
composer install --no-scripts
65
67
echo -e " \033[0m"
68
+ cd $DIR
66
69
67
70
# configure, make and install (but skip documentation)
68
71
make configure
Original file line number Diff line number Diff line change 27
27
.cached_vendor :
28
28
extends : [.clean_ordering]
29
29
cache :
30
- key : libvendor-260522
30
+ key : webappvendor-20240623
31
31
paths :
32
- - lib /vendor/
32
+ - webapp /vendor/
33
33
34
34
.mysql_job :
35
35
script :
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ echo "UPDATE user SET teamid = 1 WHERE userid = 1;" | mysql domjudge_test
20
20
cp webapp/.env.test /opt/domjudge/domserver/webapp/
21
21
22
22
# We also need the composer.json for PHPunit to detect the correct directory.
23
- cp composer.json /opt/domjudge/domserver/
23
+ cp webapp/ composer.json /opt/domjudge/domserver/
24
24
25
25
cd /opt/domjudge/domserver
26
26
You can’t perform that action at this time.
0 commit comments