-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
50 lines (44 loc) · 1.03 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
variables:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: 'trust'
stages:
- test
- release
services:
- postgres:latest
cache:
key: "$CI_PROJECT_NAME"
paths:
- node_modules
- $HOME/.cache/pip
include:
- component: gitlab.com/thelabnyc/thelab-ci-components/precommit@0.3.1
- component: gitlab.com/thelabnyc/thelab-ci-components/publish-gitlab-release@0.3.1
- component: gitlab.com/thelabnyc/thelab-ci-components/publish-to-pypi@0.3.1
inputs:
pkg_dir: server/
lint_typescript:
stage: test
image: node:22
script:
- cd client/
- NODE_ENV=dev npm ci
- npm run lint
- npm run test
- NODE_ENV=production node_modules/.bin/webpack
test:
stage: test
image: "registry.gitlab.com/thelabnyc/python:${IMAGE}"
script:
- cd server/
- pip install tox
- tox
coverage: '/^TOTAL.+?(\d+\%)$/'
parallel:
matrix:
- IMAGE: py312
TOX_SKIP_ENV: "^(?!py312-)"
- IMAGE: py313
TOX_SKIP_ENV: "^(?!py313-)"