Skip to content

Commit 4f44eb1

Browse files
author
Michael Vasseur
committed
Fix future tests
1 parent ac3630e commit 4f44eb1

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

.github/jobs/baseinstall.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export PHPVERSION
1212

1313
section_start "Run composer"
1414
export APP_ENV="dev"
15+
cd webapp
1516
composer install --no-scripts |tee "$ARTIFACTS"/composer_out.txt
17+
cd ..
1618
section_end
1719

1820
section_start "Set simple admin password"

.github/jobs/composer_setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ echo "$PHPVERSION" | tee -a "$ARTIFACTS"/phpversion.txt
4848
section_end
4949

5050
section_start "Run composer"
51+
cd webapp
5152
composer install --no-scripts 2>&1 | tee -a "$ARTIFACTS/composer_log.txt"
5253
section_end

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141

4242
- name: Install composer files
4343
if: ${{ contains(env.COMPILED, matrix.language) }}
44-
run: composer install --no-scripts
44+
run: |
45+
cd webapp
46+
composer install --no-scripts
4547
4648
- name: Configure Makefile
4749
if: ${{ contains(env.COMPILED, matrix.language) }}

gitlab/base.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ parameters:
5555
domjudge.baseurl: http://localhost/domjudge
5656
EOF
5757

58+
# Composer steps
59+
cd webapp
5860
# install check if the cache might be dirty
5961
set +e
6062
composer install --no-scripts || rm -rf lib/vendor
@@ -63,6 +65,7 @@ set -e
6365
# install all php dependencies
6466
composer install --no-scripts
6567
echo -e "\033[0m"
68+
cd $DIR
6669

6770
# configure, make and install (but skip documentation)
6871
make configure

gitlab/ci/template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
.cached_vendor:
2828
extends: [.clean_ordering]
2929
cache:
30-
key: libvendor-260522
30+
key: webappvendor-20240623
3131
paths:
32-
- lib/vendor/
32+
- webapp/vendor/
3333

3434
.mysql_job:
3535
script:

gitlab/unit-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ echo "UPDATE user SET teamid = 1 WHERE userid = 1;" | mysql domjudge_test
2020
cp webapp/.env.test /opt/domjudge/domserver/webapp/
2121

2222
# 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/
2424

2525
cd /opt/domjudge/domserver
2626

0 commit comments

Comments
 (0)