From ef2aac57c39877517b5c2e9f79b61020d6881a60 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Mon, 20 Jan 2020 11:18:37 -0700 Subject: [PATCH] Switched to travis for CI --- .github/workflows/test-suite.yaml | 31 ------------------------------- .travis.yml | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/test-suite.yaml create mode 100644 .travis.yml diff --git a/.github/workflows/test-suite.yaml b/.github/workflows/test-suite.yaml deleted file mode 100644 index c5bc76a..0000000 --- a/.github/workflows/test-suite.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: Directory Lister Test Suite -on: [push] - -jobs: - unit-tests: - name: Unit Tests - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - - - name: Get Composer Cache Directory - id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - - name: Cache PHP Dependencies - uses: actions/cache@v1 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-composer- - - - name: Validate Composer Files - run: composer validate - - - name: Install PHP Dependencies - run: composer install --prefer-dist --no-progress --no-suggest - - - name: Run Tests - run: vendor/bin/phpunit --coverage-text - diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7020480 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +sudo: false + +language: php + +php: + - 7.3 + - 7.4 + - nightly + +matrix: + allow_failures: + - php: nightly + +cache: + directories: + - $HOME/.composer/cache + - vendor + +before_install: phpenv config-rm xdebug.ini || true + +install: composer install + +before_script: + - vendor/bin/php-cs-fixer fix --diff --dry-run + - vendor/bin/psalm + +script: vendor/bin/phpunit --coverage-text