Skip to content

Commit

Permalink
first shot enabling travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed Jun 10, 2020
1 parent f0b6212 commit 6862c20
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
language: php

php:
- 7.3

before_script:
- phpenv config-rm xdebug.ini
- echo | pecl install channel://pecl.php.net/yaml-2.1.0
- git clone https://github.com/pmmp/pthreads.git
- cd pthreads
- git checkout 0e2d93d166afafa100db39c69f8a919fa1b1134d
- phpize
- ./configure
- make
- make install
- cd ..
- echo "extension=pthreads.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

script:
- COMPOSER=phpstan-composer.json composer install --prefer-dist
- ./vendor/bin/phpstan analyze --no-progress --memory-limit=2G

cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.composer/cache/vcs

notifications:
email: false

0 comments on commit 6862c20

Please sign in to comment.