-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
39 lines (38 loc) · 1023 Bytes
/
.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
test-client:
stage: test
image: gcc
before_script:
- >
apt-get update -yqq &&
apt-get install -yqq libgpgme-dev
cmake clang qt6-base-dev clang-tidy clang-format
- update-alternatives --set c++ /usr/bin/clang++
- cd client
script:
- make
- make lint
- make test
rules:
- changes:
- .gitlab-ci.yml
- client/**/*
test-server:
stage: test
image: python:3.10
before_script:
- pip install --upgrade pip
- export POETRY_HOME=/opt/poetry
- python3 -m venv $POETRY_HOME
- $POETRY_HOME/bin/pip install poetry==1.8.2
- export PATH=$POETRY_HOME/bin:$PATH
- poetry --version
- cd server
- poetry install
script:
poetry run python3 lint.py
poetry run python3 manage.py migrate
poetry run python3 manage.py test
rules:
- changes:
- .gitlab-ci.yml
- server/**/*