Skip to content

Commit

Permalink
removes the graphql auth plugin from composer over to the plugins dir…
Browse files Browse the repository at this point in the history
…ectory since there is a fatal bug in it:

wp-graphql/wp-graphql-jwt-authentication#157
  • Loading branch information
gilzow committed May 12, 2022
1 parent dfbf13b commit fff0c5b
Show file tree
Hide file tree
Showing 72 changed files with 6,533 additions and 131 deletions.
3 changes: 1 addition & 2 deletions api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
"wpackagist-theme/twentytwentytwo": "^1.1",
"wpackagist-theme/twentytwenty": "^1.9",
"wpackagist-plugin/akismet": "^4.2",
"wpackagist-plugin/wp-graphql": "^1.8",
"wp-graphql/wp-graphql-jwt-authentication": "^0.5.1"
"wpackagist-plugin/wp-graphql": "^1.8"
},
"config": {
"allow-plugins": {
Expand Down
130 changes: 1 addition & 129 deletions api/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/plugins/wp-graphql-jwt-authentication/.coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service_name: travis-ci
coverage_clover: tests/_output/coverage.xml
json_path: tests/_output/coverage.json
27 changes: 27 additions & 0 deletions api/plugins/wp-graphql-jwt-authentication/.distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# A set of files you probably don't want in your WordPress.org distribution
.distignore
.editorconfig
.git
.gitignore
.gitlab-ci.yml
.travis.yml
.DS_Store
Thumbs.db
behat.yml
bin
circle.yml
composer.json
composer.lock
Gruntfile.js
package.json
phpunit.xml
phpunit.xml.dist
multisite.xml
multisite.xml.dist
phpcs.ruleset.xml
README.md
wp-cli.local.yml
tests
node_modules
*.zip
*.tar.gz
22 changes: 22 additions & 0 deletions api/plugins/wp-graphql-jwt-authentication/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[{.jshintrc,*.json,*.yml}]
indent_style = space
indent_size = 2

[{*.txt,wp-config-sample.php}]
end_of_line = crlf
23 changes: 23 additions & 0 deletions api/plugins/wp-graphql-jwt-authentication/.env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Shared
TEST_DB_NAME="wptests"
TEST_DB_HOST="127.0.0.1"
TEST_DB_USER="root"
TEST_DB_PASSWORD=""

# Install script
WP_VERSION=latest
SKIP_DB_CREATE=false

# Codeception
WP_ROOT_FOLDER="/tmp/wp-graphql-jwt-authentication/wordpress"
WP_ADMIN_PATH="/wp-admin"
DB_NAME="wptests"
DB_HOST="127.0.0.1"
DB_USER="root"
DB_PASSWORD=""
WP_TABLE_PREFIX="wp_"
WP_URL="http://wp.test"
WP_DOMAIN="wp.test"
ADMIN_EMAIL="[email protected]"
ADMIN_USERNAME="admin"
ADMIN_PASSWORD="password"
20 changes: 20 additions & 0 deletions api/plugins/wp-graphql-jwt-authentication/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.DS_Store
Thumbs.db
wp-cli.local.yml
node_modules/
*.zip
*.tar.gz
.idea
coverage/
build/
vendor/*
!vendor/composer
!vendor/firebase
!vendor/autoload.php
c3.php
!/tests
/tests/*.suite.yml
/tests/_output
.env
.codeception.yml
composer.lock
78 changes: 78 additions & 0 deletions api/plugins/wp-graphql-jwt-authentication/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
sudo: false
dist: trusty

language: php

notifications:
email:
on_success: never
on_failure: change

branches:
only:
- master

cache:
directories:
- vendor
- $HOME/.composer/cache

matrix:
include:
- php: 7.3
env: WP_VERSION=latest
- php: 7.2
env: WP_VERSION=latest
- php: 7.1
env: WP_VERSION=latest
- php: 7.0
env: WP_VERSION=latest
- php: 7.0
env: WP_VERSION=trunk
allow_failures:
- env: WP_TRAVISCI=phpcs

install:
- |
cd $TRAVIS_BUILD_DIR
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
before_script:
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [[ ! -z "$WP_VERSION" ]]; then
cp .env.dist .env
composer install-wp-tests
COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --prefer-source --no-interaction
fi
- |
if [[ "$WP_TRAVISCI" == "phpcs" ]]; then
COMPOSER_MEMORY_LIMIT=-1 travis_retry composer require \
squizlabs/php_codesniffer \
phpcompatibility/phpcompatibility-wp wp-coding-standards/wpcs \
dealerdirect/phpcodesniffer-composer-installer
COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --no-dev
fi
script:
- |
if [[ ! -z "$WP_VERSION" ]]; then
vendor/bin/codecept run wpunit
fi
- |
if [[ "$WP_TRAVISCI" == "phpcs" ]]; then
vendor/bin/phpcs \
wp-graphql-acf.php \
src/*.php --standard=WordPress
fi
after_success:
# Download and run Coveralls.io client
- |
if [ "$COVERAGE" == "1" ]; then
wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
chmod +x php-coveralls.phar
travis_retry php php-coveralls.phar -v
fi
Loading

0 comments on commit fff0c5b

Please sign in to comment.