-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
46 lines (41 loc) · 1.17 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
stages:
- test
- build
test_sanbox_true:
image: python:2.7
stage: test
tags:
- dind
variables:
SANDBOX_MODE: 'True'
GIT_STRATEGY: clone
before_script:
- echo "machine gitlab.quintagroup.com login $TOKEN_NAME password $D_TOKEN" > ~/.netrc
- pip install -r requirements-dev.txt
- pip install -e .
script:
- pytest openprocurement/bridge/pricequotation/tests/ --cov=openprocurement/bridge/pricequotation
test_sanbox_false:
image: python:2.7
stage: test
variables:
GIT_STRATEGY: clone
tags:
- dind
before_script:
- echo "machine gitlab.quintagroup.com login $TOKEN_NAME password $D_TOKEN" > ~/.netrc
- pip install -r requirements-dev.txt
- pip install -e .
script:
- pytest openprocurement/bridge/pricequotation/tests/ --cov=openprocurement/bridge/pricequotation
build:
stage: build
tags:
- dind
before_script:
- apk add gettext
- envsubst < Dockerfile_template > Dockerfile
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.quintagroup.com:443
script:
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG