Skip to content

Commit

Permalink
Use PHP env to run composer
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalec committed Jul 7, 2021
1 parent 6ed7756 commit 163c4b1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ matrix:
env: WP_VERSION="${WP_LATEST}" WC_VERSION="${WC_LATEST}" WP_TRAVISCI=cs WP_MULTISITE=0
script: npm ci && npm run lint
- name: "Bundle size"
language: node_js # Takes version from `.nvmrc`, runs `npm ci` automatically.
env: WP_VERSION="${WP_LATEST}" WC_VERSION="${WC_LATEST}" WP_TRAVISCI=bw WP_MULTISITE=0
# Run full build, to watch also .zip
script: npm run build && npx bundlewatch
php: 7.4
env: WP_VERSION="${WP_LATEST}" WC_VERSION="${WC_LATEST}" WP_TRAVISCI=cs WP_MULTISITE=0
script: npm ci && npm run build && npx bundlewatch

before_install:
- if [[ "${WP_TRAVISCI}" != "jest" ]]; then composer self-update --1; fi
Expand Down

0 comments on commit 163c4b1

Please sign in to comment.