From 0fbfec9f66c86410a355cf1589ba2f4e90d55be0 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Mon, 13 Feb 2023 16:27:48 +1300 Subject: [PATCH] chore: migrate to gh actions from travis --- .github/workflows/ci.yml | 11 +++++++++++ .travis.yml | 32 -------------------------------- 2 files changed, 11 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bf02210 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,11 @@ +name: CI + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + ci: + name: CI + uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e6dd5c4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -language: php - -dist: trusty - -env: - global: - - COMPOSER_ROOT_VERSION=2.x-dev - -matrix: - include: - - php: 7.2 - env: DB=MYSQL PHPUNIT_TEST=1 PHPCS_TEST=1 - - php: 7.3 - env: DB=MYSQL PHPUNIT_COVERAGE_TEST=1 - -before_script: - # Init PHP - - phpenv rehash - - phpenv config-rm xdebug.ini - - composer validate - - composer require silverstripe/recipe-cms 4.5.x-dev --no-update - - if [[ $DB == PGSQL ]]; then composer require silverstripe/postgresql:2.0.x-dev --no-update; fi - - if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi - - composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile - -script: - - if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests/; fi - - if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi - - if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs src/ tests/ ; fi - -after_success: - - if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi