8000 Use GitHub actions for continuous integration (CI) by clue · Pull Request #230 · reactphp/event-loop · GitHub
[go: up one dir, main page]

Skip to content
10000

Use GitHub actions for continuous integration (CI) #230

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

Merged
merged 4 commits into from
Jun 29, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Clean up CI config to simplify installing PHP extensions
  • Loading branch information
clue committed Jun 29, 2021
commit 0322d2ce3bd5dfd45bcc7fdab69993d8c5414fef
5 changes: 2 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/.gitattributes export-ignore
/.github/ export-ignore
/.gitignore export-ignore
/examples export-ignore
/examples/ export-ignore
/phpunit.xml.dist export-ignore
/phpunit.xml.legacy export-ignore
/tests export-ignore
/travis-init.sh export-ignore
/tests/ export-ignore
44 changes: 40 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,46 @@ jobs:
php-version: ${{ matrix.php }}
coverage: xdebug
- run: sudo apt-get update && sudo apt-get install libevent-dev
- run: sudo add-apt-repository ppa:ondrej/php -y && sudo apt-get update -q && sudo apt-get install libuv1-dev
if: ${{ matrix.php >= 5.6 }}
- run: sudo sh -c "TRAVIS_PHP_VERSION=${{ matrix.php }} ./travis-init.sh"
if: ${{ matrix.php != 7.0 }} # exclude flaky PHP 7.0 build
- name: Install ext-event on PHP >= 5.4
run: |
echo "yes" | sudo pecl install event
# explicitly enable extensions in php.ini on PHP 5.6+
php -r 'exit((int)(PHP_VERSION_ID >= 50600));' || echo "extension=event.so" | sudo tee -a "$(php -r 'echo php_ini_loaded_file();')"
if: ${{ matrix.php >= 5.4 }}
- name: Install ext-ev on PHP >= 5.4
run: |
echo "yes" | sudo pecl install ev
# explicitly enable extensions in php.ini on PHP 5.6+
php -r 'exit((int)(PHP_VERSION_ID >= 50600));' || echo "extension=ev.so" | sudo tee -a "$(php -r 'echo php_ini_loaded_file();')"
if: ${{ matrix.php >= 5.4 }}
- name: Install ext-uv on PHP >= 7.0
run: |
sudo add-apt-repository ppa:ondrej/php -y && sudo apt-get update -q && sudo apt-get install libuv1-dev
echo "yes" | sudo pecl install uv-beta
echo "extension=uv.so" >> "$(php -r 'echo php_ini_loaded_file();')"
if: ${{ matrix.php >= 7.0 }}
- name: Install legacy ext-libevent on PHP < 7.0
run: |
curl http://pecl.php.net/get/libevent-0.1.0.tgz | tar -xz
pushd libevent-0.1.0
phpize
./configure
make
sudo make install
popd
echo "extension=libevent.so" | sudo tee -a "$(php -r 'echo php_ini_loaded_file();')"
if: ${{ matrix.php < 7.0 }}
- name: Install legacy ext-libev on PHP < 7.0
run: |
git clone --recursive https://github.com/m4rw3r/php-libev
pushd php-libev
phpize
./configure --with-libev
make
sudo make install
popd
echo "extension=libev.so" | sudo tee -a "$(php -r 'echo php_ini_loaded_file();')"
if: ${{ matrix.php < 7.0 }}
- run: composer install
- run: vendor/bin/phpunit --coverage-text
if: ${{ matrix.php >= 7.3 }}
Expand Down
43 changes: 0 additions & 43 deletions travis-init.sh

This file was deleted.

0