BlueGit

projects-timfalken-com verhalenboek

Files

verhalenboek / .gitlab-ci.yml

.gitlab-ci.yml

.gitlab-ci.yml 1.3 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 - python3 web/tests/feed.py
19
20frontend_checks:
21 stage: test
22 image: node:22-bookworm-slim
23 script:
24 - node --check web/assets/app.js
25 - node --check web/assets/pwa.js
26 - node --check web/sw.js
27
28# A real FTP fixture verifies that mirroring preserves production data and secrets.
29deploy_tests:
30 stage: test
31 image: debian:bookworm-slim
32 before_script:
33 - apt-get update -qq
34 - apt-get install -y --no-install-recommends python3 python3-pyftpdlib lftp ca-certificates openssh-client
35 script:
36 - python3 ci/test_deploy.py
37
38# Deploy runs on BlueGit (blue-ci-cd.yml). GitLab is only a backup mirror and never deploys.