BlueGit

projects-timfalken-com microchess

Files

microchess / .gitlab-ci.yml

.gitlab-ci.yml

feat: scaffold Synhex hex tactics on the Microchess lobby shell
timfa project_86226080_bot_b6e0858ac0a12dc6d49a8d25b3b0be9b · pushed by timfa · 2 months ago
24f20754 History
.gitlab-ci.yml 1.6 KiB Download Raw
1stages:
2 - test
3 - deploy
4
5php_tests:
6 stage: test
7 image: php:8.3-cli-bookworm
8 before_script:
9 - apt-get update -qq
10 - apt-get install -y --no-install-recommends python3 libonig-dev
11 - docker-php-ext-install mbstring
12 script:
13 - find web -name '*.php' -not -path '*/artifacts/*' -print0 | xargs -0 -n1 php -l
14 - php -r 'foreach (["pdo_sqlite", "curl", "mbstring", "openssl"] as $extension) { if (!extension_loaded($extension)) { fwrite(STDERR, "Missing extension " . $extension); exit(1); } }'
15 - php web/tests/synhex.php
16 - php web/tests/colors.php
17 - php web/tests/push.php
18 - python3 web/tests/startup.py
19 - python3 web/tests/integration.py
20
21frontend_checks:
22 stage: test
23 image: node:22-bookworm-slim
24 script:
25 - node --check web/assets/app.js
26 - node --check web/assets/pwa.js
27 - node --check web/sw.js
28 - node web/tests/pwa.mjs
29 - node --check web/tests/browser.mjs
30
31# A real FTP fixture verifies that mirroring preserves production data and secrets.
32deploy_tests:
33 stage: test
34 image: debian:bookworm-slim
35 before_script:
36 - apt-get update -qq
37 - apt-get install -y --no-install-recommends python3 python3-pyftpdlib lftp ca-certificates openssh-client
38 script:
39 - python3 ci/test_deploy.py
40
41# Production FTP deploy is disabled until a Synhex host exists.
42ftp_upload:
43 stage: deploy
44 image: debian:bookworm-slim
45 resource_group: production
46 environment:
47 name: production
48 rules:
49 - when: never
50 before_script:
51 - apt-get update -qq
52 - apt-get install -y --no-install-recommends python3 lftp ca-certificates openssh-client
53 script:
54 - python3 ci/deploy.py