Skip to content

Commit

Permalink
Enable ext-async @ Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jul 24, 2018
1 parent dae610b commit 22ecf3a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ sudo: false
language: php

php:
- 7.0
- 7.1
- 7.2
- nightly

matrix:
allow_failures:
- php: nightly
# allow_failures:
# - php: nightly
fast_finish: true

env:
Expand All @@ -20,6 +17,7 @@ before_install:
- phpenv config-rm xdebug.ini || echo "No xdebug config."

install:
- travis/install-async.sh
- composer update -n --prefer-dist
- wget https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.2/coveralls.phar
- chmod +x coveralls.phar
Expand Down
14 changes: 14 additions & 0 deletions travis/install-async.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

wget https://github.com/concurrent-php/ext-async/archive/master.tar.gz -O /tmp/php-async.tar.gz -q

mkdir php-async && tar -xf /tmp/php-async.tar.gz -C php-async --strip-components=1

pushd php-async
phpize
./configure
make
make install
popd

echo "extension=async" >> "$(php -r 'echo php_ini_loaded_file();')"

0 comments on commit 22ecf3a

Please sign in to comment.