-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
45 lines (38 loc) · 959 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
# Official docker image.
image: docker:latest
services:
- docker:dind
variables:
POSTGRES_USER: parrot_mania
POSTGRES_PASSWORD: parrot_mania
DOCKER_DRIVER: overlay
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- apk update
- apk upgrade
- apk add python3 python3-dev build-base
- pip3 install docker-compose
stages:
- test
- build
test:
stage: test
coverage: '/^TOTAL.*\s+(\d+\%)$/'
except:
- template # Don't run CI on template branch, should not be required
variables:
EDIT_SETTINGS: 'no'
script:
- make settings
- docker-compose build
- make node-install
- make quality
- make coverage
build:
stage: build
except:
- template # Don't run CI on template branch, should not be required
script:
- EDIT_SETTINGS=no make settings
# Ensure production images build also
- docker-compose -f docker-compose.production.yml build