-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
53 lines (46 loc) · 1.08 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
51
52
53
variables:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ''
POSTGRES_HOST_AUTH_METHOD: 'trust'
stages:
- test
- release
services:
- postgres:latest
- redis:latest
cache:
key: '$CI_PROJECT_NAME'
paths:
- node_modules
- $HOME/.cache/pip
include:
- component: gitlab.com/thelabnyc/thelab-ci-components/[email protected]
- component: gitlab.com/thelabnyc/thelab-ci-components/[email protected]
- component: gitlab.com/thelabnyc/thelab-ci-components/[email protected]
inputs:
pkg_dir: server/
lint_typescript:
stage: test
image: node:20
script:
- cd client/
- NODE_ENV=dev npm i
- npm run lint
- 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: py310
TOX_SKIP_ENV: "^(?!py310-)"
- IMAGE: py311
TOX_SKIP_ENV: "^(?!py311-)"
- IMAGE: py312
TOX_SKIP_ENV: "^(?!py312-)"