-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
45 lines (41 loc) · 988 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
43
44
45
stages:
- isort
- black
- test
- deploy
check-isort:
stage: isort
image: registry.cern.ch/docker.io/library/python:3.11
before_script:
- pip install --upgrade pip
- pip install isort
script:
- isort --profile black -c --skip "migrations" .
check-black:
stage: black
image: registry.cern.ch/docker.io/library/python:3.11
before_script:
- pip install --upgrade pip
- pip install black
script:
- black . --check --exclude "oais_platform/oais/migrations"
django-tests:
stage: test
image: registry.cern.ch/docker.io/library/docker:20.10.16
services:
- name: registry.cern.ch/docker.io/library/docker:20.10.16-dind
alias: docker
variables:
DOCKER_TLS_CERTDIR: "/certs"
script:
- docker info
- docker-compose -f test-compose.yml up --exit-code-from django
tags:
- docker-privileged-xl
trigger-deploy:
stage: deploy
only:
- develop
- qa
- main
trigger: digitalmemory/openshift-deploy