-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
56 lines (46 loc) · 993 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
stages:
- test
- build
- publish
variables:
ZBX_CACHEUPDATEFREQUENCY: 3
ZBX_SERVER_HOST: 0.0.0.0/0
services:
- name: zabbix/zabbix-appliance
alias: zabbix-server
- name: zabbix/zabbix-agent
alias: zabbix-agent
tests:
image: ubuntu:bionic
variables:
DEBIAN_FRONTEND: "noninteractive"
DEBCONF_NONINTERACTIVE_SEEN: "true"
before_script:
- apt-get update
- apt-get install -y software-properties-common
- apt-get update
- add-apt-repository -y ppa:deadsnakes/ppa
- apt install -y python3.6 python3.7 python3.8 python3-pip
- pip3 install pyzabbix mypy tox
script:
- tox
- mypy -p zappix
pack:
image: python:3.6
stage: build
only:
- master@szuro/zappix
script:
- python setup.py sdist bdist_wheel
artifacts:
expire_in: 1h
paths:
- dist/
publish:
image: python:3.6
stage: publish
only:
- master@szuro/zappix
script:
- pip install twine
- python -m twine upload dist/*