From 6862c20861b74eb4517cf726de7d1b307a2eb200 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 10 Jun 2020 19:04:21 +0100 Subject: [PATCH] first shot enabling travis CI --- .travis.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..604ba1f --- /dev/null +++ b/.travis.yml @@ -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