forked from v-zhuravlev/zbx_template_pack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (29 loc) · 1.22 KB
/
.travis.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
sudo: required
services:
- docker
language: perl
perl:
- "5.24"
env:
- LANG=EN ZABBIX_VERSION=3.4
- LANG=RU ZABBIX_VERSION=3.4
- LANG=EN ZABBIX_VERSION=3.2
- LANG=RU ZABBIX_VERSION=3.2
before_install:
- cpanm --install JSON::XS
- cpanm --install LWP
- curl -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- pushd tests/docker && docker-compose up -d
- popd
- pushd bin
- while ! perl check-api.pl --api_url='http://localhost/api_jsonrpc.php' -u Admin -p zabbix; do sleep 1; done
- popd
install: true
script:
- pushd bin
- perl import-templates.pl --api_url='http://localhost/api_jsonrpc.php' -u Admin -p zabbix --lang ${LANG} ../out/module/${ZABBIX_VERSION}
- perl import-templates.pl --api_url='http://localhost/api_jsonrpc.php' -u Admin -p zabbix --lang ${LANG} ../out/net/${ZABBIX_VERSION}
- perl import-templates.pl --api_url='http://localhost/api_jsonrpc.php' -u Admin -p zabbix --lang ${LANG} ../out/os/${ZABBIX_VERSION}
- perl import-templates.pl --api_url='http://localhost/api_jsonrpc.php' -u Admin -p zabbix --lang ${LANG} ../out/server/${ZABBIX_VERSION}