You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
("build", "Build OIOIOI container from source.", "build", True),
27
26
("up", "Run all SIO2 containers", "up -d"),
28
27
("down", "Stop and remove all SIO2 containers", "down"),
29
28
("wipe", "Stop all SIO2 containers and DESTROY all data", "down -v", True),
30
-
("run", "Run django server and webpack",
31
-
'{exec} web conc -n js,py -c yellow,green -k "npm --prefix ../oioioi run -s watch" "python3 manage.py runserver 0.0.0.0:8000"'),
29
+
(
30
+
"run",
31
+
"Run django server and webpack",
32
+
'{exec} web conc -n js,py -c yellow,green -k "npm --prefix ../oioioi run -s watch" "python3 manage.py runserver 0.0.0.0:8000"',
33
+
),
32
34
("stop", "Stop all SIO2 containers", "stop"),
33
35
("bash", "Open command prompt on web container.", "{exec} web bash"),
34
36
("exec", "Run a command in the web container.", "{exec} web {extra_args}"),
35
37
("bash-db", "Open command prompt on database container.", "{exec} db bash"),
36
38
# This one CLEARS the database. Use wisely.
37
39
("flush-db", "Clear database.", "{exec} web python manage.py flush --noinput", True),
38
-
("add-superuser", "Create admin_admin.",
39
-
"{exec} web python manage.py loaddata ../oioioi/oioioi_cypress/cypress/fixtures/admin_admin.json"),
40
+
("add-superuser", "Create admin_admin.", "{exec} web python manage.py loaddata ../oioioi/oioioi_cypress/cypress/fixtures/admin_admin.json"),
40
41
("test", "Run unit tests.", "{exec} web ../oioioi/test.sh {extra_args}"),
41
42
("test-slow", "Run unit tests. (--runslow)", "{exec} web ../oioioi/test.sh --runslow {extra_args}"),
42
-
("test-coverage", "Run coverage tests.",
43
-
"{exec} 'web' ../oioioi/test.sh oioioi/problems --cov-report term --cov-report xml:coverage.xml --cov=oioioi {extra_args}"),
44
-
("cypress-apply-settings", "Apply settings for CyPress.",
45
-
'{exec} web bash -c "echo CAPTCHA_TEST_MODE=True >> settings.py"'),
43
+
(
44
+
"test-coverage",
45
+
"Run coverage tests.",
46
+
"{exec} 'web' ../oioioi/test.sh oioioi/problems --cov-report term --cov-report xml:coverage.xml --cov=oioioi {extra_args}",
47
+
),
48
+
("cypress-apply-settings", "Apply settings for CyPress.", '{exec} web bash -c "echo CAPTCHA_TEST_MODE=True >> settings.py"'),
46
49
("npm", "Run npm command.", "{exec} web npm --prefix ../oioioi {extra_args}"),
47
50
("eslint", "Run javascript linter.", "{exec} web npm --prefix ../oioioi run lint"),
48
-
("ruff", "Run Ruff, a linter and formatter. You can add `--fix` to automatically fix some errors.","{exec} -w /sio2/oioioi web bash -c 'ruff check . {extra_args} ; echo ; ruff format .'",
49
-
)
51
+
(
52
+
"ruff",
53
+
"Run Ruff, a linter and formatter. You can add `--fix` to automatically fix some errors.",
54
+
"{exec} -w /sio2/oioioi web bash -c 'ruff check . {extra_args} ; echo ; ruff format .'",
0 commit comments