aswi2021jmsd-gitlab/.gitlab-ci.yml @ ba842d27
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 | f6f17f0f | Stanislav Král | variables: |
15 | FLASK_HOST: "78.128.250.101" |
||
16 | 509fc2c2 | Stanislav Král | only: |
17 | 2640ea75 | Stanislav Král | - 8219_CICD_Test |
18 | fd2486c6 | Jan Pašek | script: |
19 | a92baa2d | Stanislav Král | - pip3 install -r requirements.txt && pytest |
20 | fd2486c6 | Jan Pašek | |
21 | ba842d27 | Stanislav Král | # deploy_job:
|
22 | # stage: deploy
|
||
23 | # only:
|
||
24 | # - 8219_CICD_Test
|
||
25 | # script:
|
||
26 | # - pip3 install -r requirements.txt && python3 app.py
|