reactphp/stomp

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
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