Skip to content

Commit

Permalink
Adds script linting to Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoodyear committed Nov 17, 2017
1 parent 0f638a9 commit 2fe7780
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
language: php

matrix:
cache:
apt: true
yarn: true
directories:
- $HOME/.composer/cache/files
- $HOME/.yarn/node_modules
- node_modules

matrix:
include:
# aliased to a recent 5.6.x version
- php: '5.6'
Expand Down Expand Up @@ -41,6 +48,8 @@ before_script:
- if [[ "$SNIFF" == "1" ]]; then phpenv rehash; fi
# Set up unit tests
- bash app/bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
# Install npm modules
- yarn

script:
# Search for PHP syntax errors.
Expand All @@ -56,4 +65,6 @@ script:
# --extensions: Only sniff PHP files.
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs -p -s -v -n . --standard="WordPress-VIP" --extensions=php; fi
# Run unit tests
- phpunit
- phpunit
# Run linting
- npm run lint-scripts

0 comments on commit 2fe7780

Please sign in to comment.