Skip to content

Commit

Permalink
Merge branch 'update-whole' of https://github.com/the-eater/stomp
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Oct 1, 2017
2 parents 49ecfb9 + e744826 commit 7c47d4d
Show file tree
Hide file tree
Showing 42 changed files with 983 additions and 297 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vendor
Dockerfile
50 changes: 24 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,36 @@
language: php

dist: trusty
php:
- 5.4
- 5.5
- 5.6
- 7
- hhvm
- hhvm-nightly

matrix:
allow_failures:
- php: 7
- php: hhvm
- php: hhvm-nightly
fast_finish: true
- 7.0
- 7.1

env:
- STOMP_PROVIDER=rabbitmq
- STOMP_PROVIDER=apollo
- STOMP_PROVIDER=activemq SKIP_AUTH_CHECKS=1

before_script:
- sh -c " if [ '$STOMP_PROVIDER' = 'apollo' ]; then
wget http://mirror.catn.com/pub/apache/activemq/activemq-apollo/1.7/apache-apollo-1.7-unix-distro.tar.gz;
tar xzf apache-apollo-1.7-unix-distro.tar.gz;
./apache-apollo-1.7/bin/apollo create apollo;
./apollo/bin/apollo-broker-service start;
sleep 6;
fi"
- sh -c " if [ '$STOMP_PROVIDER' = 'rabbitmq' ]; then
sudo rabbitmq-plugins enable rabbitmq_stomp;
sudo service rabbitmq-server start;
fi"
- composer install --dev --prefer-source
- 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 install activemq tree;
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 --prefer-source

script:
- phpunit --coverage-text
- phpunit -c phpunit-functional.xml.dist
- vendor/bin/phpunit --coverage-text
- vendor/bin/phpunit -c phpunit-functional.xml.dist
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"react/promise": "~2.0"
},
"autoload": {
"psr-0": { "React\\Stomp": "src" }
"psr-4": { "React\\Stomp\\": "src" }
},
"require-dev": {
"phpunit/phpunit": "4.3.*"
"phpunit/phpunit": "^5"
}
}
Loading

0 comments on commit 7c47d4d

Please sign in to comment.