aswi2021jmsd-gitlab4/.gitlab-ci.yml @ 1a046db5
1 | fd2486c6 | Jan Pašek | 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 | 509fc2c2 | Stanislav Král | only: |
15 | 2640ea75 | Stanislav Král | - 8219_CICD_Test |
16 | fd2486c6 | Jan Pašek | script: |
17 | a92baa2d | Stanislav Král | - pip3 install -r requirements.txt && pytest |
18 | fd2486c6 | Jan Pašek | |
19 | deploy_job: |
||
20 | stage: deploy |
||
21 | a92baa2d | Stanislav Král | only: |
22 | - 8219_CICD_Test |
||
23 | fd2486c6 | Jan Pašek | script: |
24 | 1a046db5 | Stanislav Král | - apt install -y python-pip |
25 | 0df5ad4d | Stanislav Král | - pip install docker-compose |
26 | a92baa2d | Stanislav Král | - docker-compose up -d --build |