-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
36 lines (32 loc) · 981 Bytes
/
.gitlab-ci.yml
File metadata and controls
36 lines (32 loc) · 981 Bytes
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
stages:
- docker
- test
docker build:
stage: docker
image: docker:stable
script:
- docker build . -f docker/Dockerfile.optipuls
-t optipulsproject/optipuls:$CI_COMMIT_SHORT_SHA
-t optipulsproject/optipuls:$CI_COMMIT_REF_SLUG
-t optipulsproject/optipuls:latest
docker push:
stage: docker
image: docker:stable
script:
- echo -n $CI_REGISTRY_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin
- docker push optipulsproject/optipuls:$CI_COMMIT_SHORT_SHA
- docker push optipulsproject/optipuls:$CI_COMMIT_REF_SLUG
- docker push optipulsproject/optipuls:latest
unittest:
stage: test
image: optipulsproject/optipuls:$CI_COMMIT_SHORT_SHA
script:
- python3 -m unittest discover -s tests/unit
gradient_test:
stage: test
image: optipulsproject/optipuls:$CI_COMMIT_SHORT_SHA
script:
- python3 tests/integration/gradient_test.py --outdir ./output
artifacts:
paths:
- ./output/gradient_test.png