aswi2021jmsd-gitlab4/.gitlab-ci.yml @ 1a046db5
1 |
stages: |
---|---|
2 |
- build |
3 |
- test |
4 |
- deploy |
5 |
|
6 |
build_job: |
7 |
stage: build |
8 |
script: |
9 |
- mkdir build |
10 |
- echo "OK" > build/build.txt |
11 |
|
12 |
test_job: |
13 |
stage: test |
14 |
only: |
15 |
- 8219_CICD_Test |
16 |
script: |
17 |
- pip3 install -r requirements.txt && pytest |
18 |
|
19 |
deploy_job: |
20 |
stage: deploy |
21 |
only: |
22 |
- 8219_CICD_Test |
23 |
script: |
24 |
- apt install -y python-pip |
25 |
- pip install docker-compose |
26 |
- docker-compose up -d --build |
27 |
|