-
Notifications
You must be signed in to change notification settings - Fork 11
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 #2 from infinum/develop
Adding initial setup
- Loading branch information
Showing
33 changed files
with
1,951 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
vendor |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
sudo: false | ||
|
||
dist: trusty | ||
|
||
language: php | ||
|
||
php: | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
|
||
notifications: | ||
email: | ||
on_success: never | ||
on_failure: change | ||
|
||
branches: | ||
only: | ||
- master | ||
- development | ||
|
||
cache: | ||
apt: true | ||
directories: | ||
- vendor | ||
- node_modules | ||
- composer | ||
- $HOME/.composer/cache | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 7.3 | ||
env: WP_VERSION=latest WP_MULTISITE=0 | ||
- php: 7.2 | ||
env: WP_VERSION=latest WP_MULTISITE=0 | ||
- php: 7.2 | ||
env: WP_VERSION=latest WP_MULTISITE=1 | ||
- php: 7.1 | ||
env: WP_VERSION=latest WP_MULTISITE=0 | ||
- php: 7.0 | ||
env: WP_VERSION=latest WP_MULTISITE=1 | ||
|
||
allow_failures: | ||
# Allow failures for unstable builds. | ||
- php: nightly | ||
|
||
before_install: | ||
# Speed up build time by disabling Xdebug. | ||
# https://johnblackbourn.com/reducing-travis-ci-build-times-for-wordpress-projects/ | ||
# https://twitter.com/kelunik/status/954242454676475904 | ||
- phpenv config-rm xdebug.ini || echo 'No xdebug config.' | ||
# Install PHP CodeSniffer. | ||
- composer self-update | ||
- composer clearcache | ||
- composer install | ||
- phpenv rehash | ||
|
||
script: | ||
# Search for PHP syntax errors. | ||
- find -L . -path ./vendor -prune -o -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l | ||
# Run PHPCS. | ||
- composer check-cs . -- --runtime-set ignore_warnings_on_exit 1 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Eightshift Libs | ||
|
||
TBD |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "infinum/eightshift-libs", | ||
"description": "WordPress libs developed by Eightshift team to use in modern WordPress.", | ||
"keywords": [ | ||
"composer", "installer", "plugin" | ||
], | ||
"homepage": "https://eightshift.com/", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Eightshift team", | ||
"email": "[email protected]", | ||
"homepage": "https://eightshift.com/", | ||
"role": "Developer / IT Manager" | ||
} | ||
], | ||
"support": { | ||
"issues": "https://github.com/infinum/eightshift-libs/issues", | ||
"source": "https://github.com/infinum/eightshift-libs" | ||
}, | ||
"require": { | ||
"php": ">=7.0" | ||
}, | ||
"require-dev": { | ||
"infinum/coding-standards-wp": "^0.4.1", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Eightshift_Libs\\": "src/" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"config": { | ||
"sort-packages": true, | ||
"optimize-autoloader": true, | ||
"process-timeout": 2000 | ||
}, | ||
"scripts": { | ||
"check-cs": "@php ./vendor/bin/phpcs", | ||
"fix-cs": "@php ./vendor/bin/phpcbf" | ||
} | ||
} |
Oops, something went wrong.