-
Notifications
You must be signed in to change notification settings - Fork 42
/
.travis.yml
41 lines (37 loc) · 1.16 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
language: php
dist: trusty
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
env:
- STOMP_PROVIDER=rabbitmq
# - STOMP_PROVIDER=apollo # don't install legacy ActiveMQ Apollo anymore
- STOMP_PROVIDER=activemq SKIP_AUTH_CHECKS=1
install:
- if [ "$STOMP_PROVIDER" = 'apollo' ]; then
wget http://www-us.apache.org/dist/activemq/activemq-apollo/1.7.1/apache-apollo-1.7.1-unix-distro.tar.gz;
tar xzf apache-apollo-1.7.1-unix-distro.tar.gz;
./apache-apollo-1.7.1/bin/apollo create apollo;
./apollo/bin/apollo-broker-service start;
sleep 6;
fi
- if [ "$STOMP_PROVIDER" = 'rabbitmq' ]; then
sudo rabbitmq-plugins enable rabbitmq_stomp;
sudo service rabbitmq-server start;
fi
- if [ "$STOMP_PROVIDER" = 'activemq' ]; then
sudo apt update && sudo apt install activemq;
sudo cp tests/utils/activemq.xml /etc/activemq/instances-available/main/;
sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main;
sudo service activemq start;
fi
- composer install
script:
- vendor/bin/phpunit --coverage-text
- vendor/bin/phpunit -c phpunit-functional.xml.dist