-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
42 lines (40 loc) · 944 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
40
41
42
test:
image: yourlabs/python-arch
script:
- pacman -Sy --overwrite "*wheel*" python-wheel rust cargo --noconfirm
- pip install -e .[project]
- ./manage.py diffsettings
- py.test -vv --cov src --strict-markers -r fEsxXw
cache:
paths:
- .cache/pip
variables:
CHANNELS_ENABLE: '1'
DJANGO_SETTINGS_MODULE: ryzom_django_example.settings
DEBUG: '1'
PIP_ALLOW_EXTERNAL: 'true'
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
DB_HOST: postgres
DB_USER: test
DB_NAME: test
DB_PASSWORD: test
POSTGRES_DB: test
POSTGRES_USER: test
POSTGRES_PASSWORD: test
services:
- name: redis
- name: postgres:latest
command:
- "postgres"
- "-c"
- "log_min_duration_statement=300"
# when we pass ...
# qa:
# stage: test
# image: yourlabs/python
# script: flake8 src
pypi:
stage: deploy
image: yourlabs/python
script: pypi-release
only: [tags]