Skip to content

Commit 8b5ad40

Browse files
committed
Move composer files into webapp to simplify all overrides
1 parent d0f59f3 commit 8b5ad40

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

.github/jobs/baseinstall.sh

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

4242
section_start "Run composer"
4343
export APP_ENV="dev"
44+
cd webapp
4445
composer install --no-scripts
46+
cd ..
4547
section_end
4648

4749
section_start "Set simple admin password"

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
- name: Install composer files
5454
if: ${{ contains(env.COMPILED, matrix.language) }}
5555
run: |
56+
cd webapp
5657
composer install --no-scripts
5758
5859
- name: Configure Makefile

gitlab/base.sh

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

58-
# install check if the cache might be dirty
59-
set +e
60-
composer install --no-scripts || rm -rf webapp/vendor
61-
set -e
62-
63-
# install all php dependencies
64-
composer install --no-scripts
65-
echo -e "\033[0m"
58+
# Composer steps
59+
cd webapp
60+
# install check if the cache might be dirty
61+
set +e
62+
composer install --no-scripts || rm -rf webapp/vendor
63+
set -e
64+
65+
# install all php dependencies
66+
composer install --no-scripts
67+
echo -e "\033[0m"
68+
cd $DIR
6669

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

composer.json renamed to webapp/composer.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@
125125
},
126126
"autoload": {
127127
"psr-4": {
128-
"App\\": "webapp/src/"
128+
"App\\": "src/"
129129
},
130130
"files": [
131-
"webapp/resources/functions.php"
131+
"resources/functions.php"
132132
]
133133
},
134134
"autoload-dev": {
135135
"psr-4": {
136-
"App\\Tests\\": "webapp/tests/"
136+
"App\\Tests\\": "tests/"
137137
}
138138
},
139139
"config": {
@@ -144,8 +144,6 @@
144144
"platform": {
145145
"php": "8.1.0"
146146
},
147-
"vendor-dir": "webapp/vendor",
148-
"component-dir": "webapp/vendor/components",
149147
"allow-plugins": {
150148
"composer/package-versions-deprecated": true,
151149
"symfony/flex": true,
@@ -178,12 +176,8 @@
178176
},
179177
"extra": {
180178
"symfony": {
181-
"root-dir": "webapp/",
182179
"allow-contrib": true,
183180
"require": "6.4.*"
184-
},
185-
"runtime": {
186-
"dotenv_path": "webapp/.env"
187181
}
188182
}
189183
}
File renamed without changes.

0 commit comments

Comments
 (0)