From d4ee8b1bd54e7b53655422f1dc5a761b87c03eac Mon Sep 17 00:00:00 2001 From: Juerg Hunziker Date: Wed, 22 Sep 2021 14:51:29 +0200 Subject: [PATCH] only run on master but not tags --- .github/workflows/lint-test-deploy.yml | 2 +- .travis.yml | 65 -------------------------- 2 files changed, 1 insertion(+), 66 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/lint-test-deploy.yml b/.github/workflows/lint-test-deploy.yml index 4900c02..5b0f44b 100644 --- a/.github/workflows/lint-test-deploy.yml +++ b/.github/workflows/lint-test-deploy.yml @@ -109,7 +109,7 @@ jobs: name: '[DRY RUN] Deploy' # only run on master but not tags - if: ${{ !startsWith(github.ref, 'refs/tags/') }} + if: ${{ github.ref == 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/') }} needs: [ lint, tests ] diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ff8a318..0000000 --- a/.travis.yml +++ /dev/null @@ -1,65 +0,0 @@ -language: php -php: - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - -dist: xenial - -services: - - mysql - -env: - global: - - secure: kVZ5N9HL3O1waaiCSwkXQj2/usnqljSwE94bzW7JCUUqwGRg0IT4kLo0nm75Unsy8MXHWowdjU2UEofCpVCeFj7RROr7cpa/Dn3oB6HXGcyZSddYYhCoQYvaQWVpespDG88/wt4k4XxmLGiGv/tb5DUOSCBl7BW0MtwXcgUj7TYR+2JtHwq1wxCRM3stONjArl3mfnquQ/p/RfV8mTU6J6yg98ZV3UP3ar2AlHhlIgWotHRQExNBV5xRYWq+CQTTV1f6irpowKUN3UrSaz7W0CpqDaX/+VV9rJpJFH+UPizBbYNSNUYZ6K1O5Q3AJbsfsP8E1efAgW1u5gsGn9bYiHiyI67+7/cSUq/uJvUwQ6yhOpwTUAoYNH4Axjo9csS6VnezV9ICnoJ8IFPo1UaJ3SeY9CFVQvkE0tBoSWcmGRK7OEh6p/x41TFCNP8bDdzMhc6mBMlZP8m81T+IrwOepGXy8yCEuWdo6GbkLkzlq9b13EJf/pioVEfRmO/iNZ/xYnXOBpDIMFCLm2rZhohAH9LrLnFrznhNIXi/+tVi1mIPqztc7zUDfqB/Gmu+pRJX+1Z18BsG0/ZojsYpq5ge5NVrv7MqMAYd4VxhqIK+0ggqb/g2ymsaCfw2/wGwQIXleWtzgTtSrc3aInEGGFDIROh1Pb6ffZVyuQswBvOw8zc= - matrix: - - WP_VERSION=4.0 # Minimum required version - - WP_VERSION=4.4 # Introduction of Responsive Images - - WP_VERSION=4.7 # Introduction of REST API - - WP_VERSION=4.9.13 # Last 4.x version - - WP_VERSION=5.0 # Introduction of Gutenberg - - WP_VERSION=5.3 # Changes in generating srcset - - WP_VERSION=latest - -matrix: - exclude: # exclude PHP >= 7 and WP 4.0 combinations because of PHP Fatal error: 'break' not in the 'loop' or 'switch' context - - php: 7.0 - env: WP_VERSION=4.0 - - php: 7.1 - env: WP_VERSION=4.0 - - php: 7.2 - env: WP_VERSION=4.0 - - php: 7.3 - env: WP_VERSION=4.0 - - php: 7.3 - env: WP_VERSION=4.4 - - php: 7.3 - env: WP_VERSION=4.7 - - php: 7.3 - env: WP_VERSION=4.9.13 - -before_install: - - nvm install 16 - -install: - - composer install - - npm ci - -before_script: - - bash scripts/install-wp-tests.sh wordpress_test root '' 127.0.0.1 $WP_VERSION - -script: - - composer lint - - composer test - - npm run lint - -deploy: - provider: script - script: scripts/deploy-wp-plugin.sh - on: - php: 7.3 - condition: "$WP_VERSION = latest" - tags: true - all_branches: true