BlueGit

projects-timfalken-com verhalenboek

Files

verhalenboek / .gitlab-ci.yml

.gitlab-ci.yml

.gitlab-ci.yml 1.2 KiB Download Raw
1stages:
2 - test
3
4php_tests:
5 stage: test
6 image: php:8.3-cli-bookworm
7 before_script:
8 - apt-get update -qq
9 - apt-get install -y --no-install-recommends python3 libonig-dev
10 - docker-php-ext-install mbstring
11 script:
12 - find web -name '*.php' -not -path '*/artifacts/*' -print0 | xargs -0 -n1 php -l
13 - php -r 'foreach (["pdo_sqlite", "curl", "mbstring", "openssl"] as $extension) { if (!extension_loaded($extension)) { fwrite(STDERR, "Missing extension " . $extension); exit(1); } }'
14 - php web/tests/storybook.php
15 - python3 web/tests/startup.py
16 - python3 web/tests/integration.py
17 - python3 web/tests/pwa.py
18
19frontend_checks:
20 stage: test
21 image: node:22-bookworm-slim
22 script:
23 - node --check web/assets/app.js
24 - node --check web/assets/pwa.js
25 - node --check web/sw.js
26
27# A real FTP fixture verifies that mirroring preserves production data and secrets.
28deploy_tests:
29 stage: test
30 image: debian:bookworm-slim
31 before_script:
32 - apt-get update -qq
33 - apt-get install -y --no-install-recommends python3 python3-pyftpdlib lftp ca-certificates openssh-client
34 script:
35 - python3 ci/test_deploy.py
36
37# Deploy runs on BlueGit (blue-ci-cd.yml). GitLab is only a backup mirror and never deploys.