-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
32 lines (26 loc) · 938 Bytes
/
.gitlab-ci.yml
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
stages:
- unit_test
- integration_test
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- ./venv
before_script:
- virtualenv --system-site-packages --python py38 ./venv
- source ./venv/bin/activate
- pip3 install -q -I -r requirements.txt
unittests:
stage: unit_test
script:
- source ./venv/bin/activate
- python3 -m unittest discover -v
timeout: 20m
integrationtest:
stage: integration_test
script:
- source ./venv/bin/activate
- python3 setup.py install
- cd tutorials
- python3 tutorial__set_targets_with_app.py --port 9999 --host-name localhost --client-mode --start-server --output-dir tutorial__set_targets_with_app --download-jar-file --suppress-prompts
- python3 tutorial__set_targets.py --port 9999 --host-name localhost --client-mode --start-server --controller-type PingPong --output-dir tutorial__set_targets --download-jar-file --suppress-prompts
allow_failure: false