forked from php-amqp/php-amqp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (64 loc) · 2.02 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
70
71
72
73
74
75
76
77
78
79
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
sudo: false
services:
- rabbitmq
matrix:
# exclude:
# - php: hhvm
# env: DB=pgsql # PDO driver for pgsql is unsupported by HHVM (3rd party install for support)
allow_failures:
- php: 7.0
#install:
# - sudo apt-get update
# - sudo apt-get -qq --fix-missing install valgrind
#
# - wget -qO - http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | sudo apt-key add -
# - sudo add-apt-repository 'deb http://www.rabbitmq.com/debian/ testing main'
# - sudo apt-get update
# - sudo apt-get install --only-upgrade -y rabbitmq-server
# - sudo service rabbitmq-server restart
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "KQZ2SfQEDucLTAhoHJ2o09nOOLr0O6cSyOiTd1WlJyio9+wRvPUkcEPJZ0wP5wkSxAuDN6vp0hPK1wks1Ue8njWRvd9Yki2rMSkn+WNsogu8+3tpgTG7IH7PwVIQ6LtOhaIpocy7XAhDrxCm9G6yaA2BpggEdstsFGAtHh30CfY="
- NO_INTERACTION=1
- TEST_TIMEOUT=120
matrix:
- LIBRABBITMQ_VERSION=master TEST_PHP_ARGS=-m
- LIBRABBITMQ_VERSION=master
- LIBRABBITMQ_VERSION=v0.6.0 TEST_PHP_ARGS=-m
- LIBRABBITMQ_VERSION=v0.6.0
- LIBRABBITMQ_VERSION=v0.7.0 TEST_PHP_ARGS=-m
- LIBRABBITMQ_VERSION=v0.7.0
- LIBRABBITMQ_VERSION=v0.5.2 TEST_PHP_ARGS=-m
- LIBRABBITMQ_VERSION=v0.5.2
before_install:
# - sh -c "php -i"
- sh provision/install_rabbitmq-c.sh ${LIBRABBITMQ_VERSION}
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then phpize && ./configure --with-librabbitmq-dir=$HOME/rabbitmq-c && make ; fi
install:
script:
- sh -c "make test | tee result.txt"
- sh test-report.sh
addons:
apt:
packages:
- valgrind
coverity_scan:
project:
name: "pinepain/php-amqp"
description: "Build submitted via Travis CI"
notification_email: pinepain@gmail.com
build_command_prepend: phpize && ./configure
build_command: make
branch_pattern: coverity_scan
notifications:
email:
- lstrojny@php.net