Skip to content

Commit

Permalink
build amqp extension from source
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Sep 14, 2017
1 parent 0ab86d1 commit 1f6d5a7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ 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
Expand Down

0 comments on commit 1f6d5a7

Please sign in to comment.