Skip to content

Commit

Permalink
Spec Parser: Move generated spec parser to package (#13493)
Browse files Browse the repository at this point in the history
* Spec Parser: Move generated spec parser to package

* Spec Parser: Add empty npmignore

* Spec Parser: Add CHANGELOG entry
  • Loading branch information
aduth authored Jan 25, 2019
1 parent 5e85519 commit ef1c0e8
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 3,490 deletions.
13 changes: 0 additions & 13 deletions bin/run-wp-unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ fi

npm run build || exit 1

# Make sure phpegjs parser is up to date
node bin/create-php-parser.js || exit 1
if ! git diff --quiet --exit-code lib/parser.php; then
echo 'ERROR: The PEG parser has been updated, but the generated PHP version'
echo ' (lib/parser.php) has not. Run `bin/create-php-parser.js` and'
echo ' commit the resulting changes to resolve this.'
sleep .2 # Otherwise Travis doesn't want to print the whole message
exit 1
fi

echo Running with the following versions:
if [[ $DOCKER = "true" ]]; then
docker-compose $DOCKER_COMPOSE_FILE_OPTIONS run --rm wordpress_phpunit php -v
Expand All @@ -40,9 +30,6 @@ else
phpunit --version
fi

# Check parser syntax
php lib/parser.php || exit 1

# Run PHPUnit tests
if [[ $DOCKER = "true" ]]; then
npm run test-php || exit 1
Expand Down
Loading

0 comments on commit ef1c0e8

Please sign in to comment.