From 37895fd7b8bd8bad27032e185e6228060f03056d Mon Sep 17 00:00:00 2001 From: Asmir Mustafic Date: Mon, 30 Nov 2020 12:03:38 +0100 Subject: [PATCH] drop travis --- .github/workflows/php.yml | 9 +++++---- .travis.yml | 34 ---------------------------------- 2 files changed, 5 insertions(+), 38 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 587886d..4cc8dde 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -15,6 +15,7 @@ jobs: - "7.2" - "7.3" - "7.4" + - "8.0" steps: - uses: actions/checkout@v2 - name: Validate composer.json and composer.lock @@ -31,7 +32,7 @@ jobs: - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress --no-suggest + run: composer update --prefer-dist --no-progress --no-suggest - name: Run test suite run: vendor/bin/phpunit @@ -62,7 +63,7 @@ jobs: - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --prefer-lowest --no-progress --no-suggest + run: composer update --prefer-dist --prefer-lowest --no-progress --no-suggest - name: Run test suite run: vendor/bin/phpunit @@ -89,7 +90,7 @@ jobs: - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress --no-suggest + run: composer update --prefer-dist --no-progress --no-suggest - name: Run test suite run: vendor/bin/phpunit --coverage-clover clover @@ -129,7 +130,7 @@ jobs: - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress --no-suggest + run: composer update --prefer-dist --no-progress --no-suggest - name: Run CS run: vendor/bin/phpcs --report=checkstyle -q | cs2pr diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 11b3716..0000000 --- a/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -language: php - -sudo: false - -git: - depth: 1 - -cache: - directories: - - $HOME/.composer/cache - -matrix: - include: - - php: 7.2 - - php: 7.2 - env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' - - php: 7.3 - - php: 7.4 - - php: nightly - fast_finish: true - -before_script: - - if [[ $TRAVIS_PHP_VERSION = '7.2' ]]; then PHPUNIT_FLAGS="--coverage-clover clover"; else PHPUNIT_FLAGS=""; fi - - if [[ $TRAVIS_PHP_VERSION != '7.2' ]]; then phpenv config-rm xdebug.ini; fi - - composer self-update - - composer update $COMPOSER_FLAGS - -script: - - vendor/bin/phpunit $PHPUNIT_FLAGS - - vendor/bin/phpcs - -after_success: - - if [[ $TRAVIS_PHP_VERSION = '7.2' ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi - - if [[ $TRAVIS_PHP_VERSION = '7.2' ]]; then php ocular.phar code-coverage:upload --format=php-clover clover; fi