Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build amqp extension from source #54

Merged
merged 2 commits into from
Sep 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,28 @@ before_script:
- sudo cp $TRAVIS_BUILD_DIR/provision/rabbitmq.config /etc/rabbitmq/
- sudo service rabbitmq-server restart
- echo "extension = amqp.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- git clone https://github.com/alanxz/rabbitmq-c.git
- cd rabbitmq-c
- git checkout v0.7.1
- git submodule init && git submodule update
- autoreconf -i && ./configure --prefix=$HOME/rabbitmq-c && make && make install
- cd ..
- git clone https://github.com/pdezwart/php-amqp.git
- cd php-amqp
- phpize
- ./configure --with-librabbitmq-dir=$HOME/rabbitmq-c
- make
- sudo make install
- cd ..
- composer self-update
- composer update --prefer-dist $DEPENDENCIES
- sudo rabbitmqctl add_vhost /humus-amqp-test
- sudo rabbitmqctl set_permissions -p /humus-amqp-test guest ".*" ".*" ".*"

script:
- php -dzend_extension=xdebug.so ./vendor/bin/phpunit --exclude-group=ssl --coverage-text --coverage-clover ./build/logs/clover.xml
- rm -rf rabbitmq-c
- rm -rf php-amqp
- ./vendor/bin/php-cs-fixer fix -v --diff --dry-run
- ./vendor/bin/docheader check src/ tests/

Expand Down