forked from voxpupuli/puppet-logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (55 loc) · 2.47 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
62
63
64
65
66
67
68
69
sudo: required
# Use Travis' Ubuntu Trusty machines. They have more RAM.
# It does not affect which OSs we are testing, since they all provided
# by Docker containers. This simply defines which OS Docker itself will
# be running on.
dist: trusty
services:
- docker
language: ruby
rvm:
- 2.1.9
script:
# Some of our test can take long time, and not output anything while they
# are running. If this goes on for too long (ten minutes), then Travis
# will assume the build has stalled, and kill it.
#
# It' a bit cheeky, but lets make sure that _something_ goes to STDOUT
# every five minutes, so that our build won't be killed unjustly.
- (while true; do date --iso-8601=seconds; sleep 300; done) &
- (if [[ -n $TRAVIS_TEST_UNIT ]]; then make test-unit; else bundle exec rake beaker; fi)
env:
global:
- TRAVIS_CI=true
- LOGSTASH_VERSION=2.4.0
- BEAKER_PE_DIR=spec/fixtures/artifacts
matrix:
# Run the unit tests once.
- TRAVIS_TEST_UNIT=true
# Then run the acceptance tests across the matrix.
- PUPPET_VERSION=3.8.6 BEAKER_set=centos-6
- PUPPET_VERSION=4.4.2 BEAKER_set=centos-6
- PUPPET_VERSION=3.8.4 BEAKER_set=centos-6 BEAKER_PE_VER=3.8.4 BEAKER_IS_PE=true
- PUPPET_VERSION=3.8.6 BEAKER_set=centos-7
- PUPPET_VERSION=4.0.0 BEAKER_set=centos-7
- PUPPET_VERSION=4.1.0 BEAKER_set=centos-7
- PUPPET_VERSION=4.2.3 BEAKER_set=centos-7
- PUPPET_VERSION=4.3.2 BEAKER_set=centos-7
- PUPPET_VERSION=4.4.2 BEAKER_set=centos-7
- PUPPET_VERSION=3.8.6 BEAKER_set=debian-7
- PUPPET_VERSION=4.4.2 BEAKER_set=debian-7
# FIXME: Beaker fails to install PE on Debian 7.
# Example: https://travis-ci.org/elastic/puppet-logstash/jobs/159507699#L542
# - PUPPET_VERSION=3.8.4 BEAKER_set=debian-7 BEAKER_PE_VER=3.8.4 BEAKER_IS_PE=true
- PUPPET_VERSION=3.8.6 BEAKER_set=debian-8
- PUPPET_VERSION=4.4.2 BEAKER_set=debian-8
- PUPPET_VERSION=3.8.6 BEAKER_set=opensuse-13
- PUPPET_VERSION=3.8.6 BEAKER_set=ubuntu-1204
- PUPPET_VERSION=4.4.2 BEAKER_set=ubuntu-1204
- PUPPET_VERSION=3.8.6 BEAKER_set=ubuntu-1404
- PUPPET_VERSION=4.4.2 BEAKER_set=ubuntu-1404
# A little "sub-matrix" to test a few Logstash versions.
- PUPPET_VERSION=4.4.2 BEAKER_set=ubuntu-1404 LOGSTASH_VERSION=2.1.2
- PUPPET_VERSION=4.4.2 BEAKER_set=ubuntu-1404 LOGSTASH_VERSION=2.2.4
- PUPPET_VERSION=4.4.2 BEAKER_set=ubuntu-1404 LOGSTASH_VERSION=2.3.4
- PUPPET_VERSION=4.4.2 BEAKER_set=ubuntu-1404 LOGSTASH_VERSION=2.4.0