forked from express42/zabbixapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (24 loc) · 1.07 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
language:
- ruby
addons:
postgresql: "9.4"
rvm:
- 1.9.3
- 2.0
- 2.1
before_script:
- sudo apt-get purge postgresql-9.1 postgresql-9.2 postgresql-9.3
- wget -qO - http://repo.zabbix.com/zabbix-official-repo.key | sudo apt-key add -
- echo "deb http://repo.zabbix.com/zabbix/2.4/ubuntu/ precise main" | sudo tee /etc/apt/sources.list.d/zabbix.list
- sudo apt-get update
- sudo apt-get install libiodbc2
- sudo apt-get install postgresql
- sudo apt-get install zabbix-frontend-php
- sudo useradd -r zabbix
- sudo apt-get install zabbix-server-pgsql
- sudo apt-get install php5-pgsql
- sudo service apache2 restart
- 'echo -e "local all all trust\nhost all all 127.0.0.1/32 trust\nhost all all ::1/128 trust" | sudo tee /etc/postgresql/9.4/main/pg_hba.conf'
- sudo pg_ctlcluster 9.4 main reload
- echo "$(curl -fsSL https://gist.githubusercontent.com/evtuhovich/9544441/raw/d661863063b76cc8e2599bc44d8595b1f86ece38/zabbix)" | sudo tee /etc/zabbix/web/zabbix.conf.php
script: "ZABBIX_HOST_URL=http://localhost/zabbix/api_jsonrpc.php bundle exec rspec spec/*"