diff --git a/.travis.yml b/.travis.yml index 3c5416e..526d4d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,17 +13,9 @@ matrix: fast_finish: true install: - - git clone https://github.com/krakjoe/pthreads.git; - pushd pthreads; - git checkout master; - phpize; - ./configure; - make; - make install; - popd; - echo "extension=pthreads.so" >> "$(php -r 'echo php_ini_loaded_file();')" - composer self-update - composer install --no-interaction --prefer-source + - travis/install-pthreads.sh script: - vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml diff --git a/travis/install-pthreads.sh b/travis/install-pthreads.sh new file mode 100644 index 0000000..31a2ed9 --- /dev/null +++ b/travis/install-pthreads.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +git clone https://github.com/krakjoe/pthreads; +pushd pthreads; +git checkout $(git describe --tags); +phpize; +./configure; +make; +make install; +popd; +echo "extension=pthreads.so" >> "$(php -r 'echo php_ini_loaded_file();')"