forked from express42/zabbixapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (49 loc) · 1.41 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cache: bundler
language: ruby
addons:
postgresql: '9.5'
apt:
sources:
- sourceline: 'deb http://repo.zabbix.com/zabbix/3.0/ubuntu/ trusty main'
key_url: 'http://repo.zabbix.com/zabbix-official-repo.key'
packages:
- php5-pgsql
- zabbix-frontend-php
- zabbix-server-pgsql
services:
- postgresql
rvm:
- 2.0
- 2.1
- 2.2
- 2.3
- 2.4
- ruby-head
- jruby-9.1.6.0
- jruby-head
- rbx-2
dist: trusty
sudo: required
bundler_args: --without development --retry=3 --jobs=3
before_install:
- gem update --system
- gem update bundler
- gem install rspec
before_script:
- sudo sed -i "s,;date.timezone =,date.timezone = 'US/Eastern'," /etc/php5/apache2/php.ini
- psql -c 'create database zabbix;' -U postgres
- psql -c 'create user zabbix;' -U postgres
- psql -c 'grant all privileges on database zabbix to zabbix;' -U postgres
- zcat /usr/share/doc/zabbix-server-pgsql/create.sql.gz | LC_ALL=C psql -U zabbix
- echo "$(curl -fsSL https://gist.githubusercontent.com/evtuhovich/9544441/raw/d661863063b76cc8e2599bc44d8595b1f86ece38/zabbix)" | sudo tee /etc/zabbix/web/zabbix.conf.php
- sudo service apache2 restart
script: "ZABBIX_HOST_URL=http://localhost/zabbix/api_jsonrpc.php bundle exec rspec spec/*"
env:
global:
- JRUBY_OPTS="$JRUBY_OPTS --debug"
matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
- rvm: rbx-2
fast_finish: true