This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #278 from xwp/feature/composer-first
Recommend Composer or NPM instead of Git submodules
- Loading branch information
Showing
45 changed files
with
315 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
codecept.phar | ||
/vendor | ||
/package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
# | ||
# Important: This file is for the wp-dev-lib Travis CI runs. | ||
# IMPORTANT: This file is for the wp-dev-lib Travis CI runs. | ||
# See sample-config/.travis.yml for a sample config for a WordPress project. | ||
# | ||
|
||
language: php | ||
|
||
php: | ||
- '7.2' | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- libxml2-utils # For xmllint. | ||
|
||
notifications: | ||
email: false | ||
|
||
script: | ||
- find . -name "*.php" -print0 | xargs -0 -n1 -P8 php -l # Ensure valid PHP syntax | ||
- shellcheck *.sh || true # Run shellcheck but ignore the output | ||
- shellcheck --format json *.sh | grep --quiet --invert-match '"level":"error"' # Fail only if shellcheck finds errors. | ||
- composer test # Run linters for the wp-dev-lib files. | ||
- composer install --working-dir="tests/composer" # Test Composer integration setup. | ||
- composer test --working-dir="tests/composer" # Test Composer integration pre-commit hook. | ||
- cd tests/composer && export DEV_LIB_PATH=vendor/xwp/wp-dev-lib/scripts # We need Bash shell which might not be available in Composer scripts. | ||
- source "$DEV_LIB_PATH/travis.install.sh" | ||
- source "$DEV_LIB_PATH/travis.script.sh" | ||
- source "$DEV_LIB_PATH/travis.after_script.sh" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.