-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
48 lines (43 loc) · 981 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
46
47
48
stages:
- test
- publish
variables:
BUCKET_DOCS: grab-ds-pypi
TWINE_USERNAME: fakeuser
TWINE_PASSWORD: fakepwd
TWINE_REPOSITORY_URL: http://pypi.ingress.dev.grabds.com
before_script:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
######## tests #############
tests:
stage: test
image: python:3.6.8
tags:
- k8s-ds-sg-shared-dev/dsarch-workspace
only:
- master
- merge_requests
script:
- make test-all
######## publish documentations #############
publish-to-docs:
stage: publish
image: python:3.6.8
tags:
- k8s-ds-sg-shared-dev/dsarch-workspace
only:
- master
script:
- make docs
- aws s3 sync ./docs s3://$BUCKET_DOCS/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
######## publish python package to private pypi server #############
publish-to-pypi:
stage: publish
image: python:3.6.8
tags:
- k8s-ds-sg-shared-dev/dsarch-workspace
only:
- master
script:
- make publish