-
Notifications
You must be signed in to change notification settings - Fork 18
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 #30 from danielbachhuber/update-readme-0-4-0
Update README for v0.4.0
- Loading branch information
Showing
10 changed files
with
2,825 additions
and
117 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,68 @@ | ||
workflows: | ||
version: 2 | ||
main: | ||
jobs: | ||
- lint | ||
- test-php | ||
|
||
version: 2 | ||
|
||
jobs: | ||
lint: | ||
docker: | ||
- image: circleci/php:7.2-node-browsers | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "composer.lock" }} | ||
- run: composer install -n --prefer-dist | ||
- save_cache: | ||
key: v1-dependencies-{{ checksum "composer.lock" }} | ||
paths: | ||
- vendor | ||
- run: | ||
name: "Run PHP Lint" | ||
command: | | ||
composer phpcs | ||
test-php: | ||
docker: | ||
- image: circleci/php:7.2-node-browsers | ||
- image: circleci/mariadb:10.3 | ||
environment: | ||
- WP_TESTS_DIR: "/tmp/wordpress-tests-lib" | ||
- WP_CORE_DIR: "/tmp/wordpress/" | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "composer.lock" }} | ||
- run: composer install -n --prefer-dist | ||
- save_cache: | ||
key: v1-dependencies-{{ checksum "composer.lock" }} | ||
paths: | ||
- vendor | ||
- run: | ||
name: "Install Extras" | ||
command: | | ||
sudo apt-get update --allow-releaseinfo-change | ||
sudo apt-get install subversion | ||
sudo apt-get install -y libmagickwand-dev --no-install-recommends | ||
yes '' | sudo pecl install imagick || true | ||
sudo docker-php-ext-enable imagick | ||
sudo docker-php-ext-install mysqli | ||
sudo apt-get install mariadb-client-10.3 | ||
sudo apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev | ||
sudo docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && sudo docker-php-ext-install gd | ||
- run: | ||
name: "Run Tests" | ||
command: | | ||
bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 latest | ||
composer phpunit | ||
WP_MULTISITE=1 composer phpunit | ||
rm -rf $WP_TESTS_DIR $WP_CORE_DIR | ||
bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 nightly true | ||
composer phpunit | ||
rm -rf $WP_TESTS_DIR $WP_CORE_DIR | ||
bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 5.1 true | ||
composer phpunit |
This file was deleted.
Oops, something went wrong.
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
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
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,29 @@ | ||
{ | ||
"name": "danielbachhuber/one-time-login", | ||
"type": "wordpress-plugin", | ||
"repositories":[ | ||
{ | ||
"type":"composer", | ||
"url":"https://wpackagist.org" | ||
} | ||
], | ||
"require-dev": { | ||
"wp-cli/dist-archive-command": "^2.0", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", | ||
"wp-coding-standards/wpcs": "^2.0", | ||
"sirbrillig/phpcs-variable-analysis": "^2.5", | ||
"phpcompatibility/phpcompatibility-wp": "^2.0", | ||
"phpunit/phpunit": "5.7.*", | ||
"yoast/phpunit-polyfills": "^1.0" | ||
}, | ||
"extra": { | ||
"installer-paths": { | ||
"vendor/{$name}/": ["type:wordpress-plugin"] | ||
} | ||
}, | ||
"scripts": { | ||
"phpcs": "vendor/bin/phpcs", | ||
"phpcbf": "vendor/bin/phpcbf", | ||
"phpunit": "vendor/bin/phpunit" | ||
} | ||
} |
Oops, something went wrong.