aswi2021jmsd-gitlab/.gitlab-ci.yml @ 5b396f6f
1 |
stages: |
---|---|
2 |
- test |
3 |
- deploy |
4 |
|
5 |
test_job: |
6 |
stage: test |
7 |
variables: |
8 |
FLASK_HOST: "78.128.250.101" |
9 |
script: |
10 |
- pip3 install -r requirements.txt |
11 |
- pytest --cov=src/ . |
12 |
- coverage xml |
13 |
artifacts: |
14 |
reports: |
15 |
cobertura: coverage.xml |
16 |
|
17 |
deploy_job: |
18 |
stage: deploy |
19 |
only: |
20 |
- master |
21 |
script: |
22 |
- docker-compose up -d --build |
23 |
|