Skip to content

Commit 5323d09

Browse files
authored
Merge pull request #18 from wp-graphql/bug/#17-viewer-query-not-returning-authenticated-user
Bug/#17 viewer query not returning authenticated user
2 parents 9ad7e46 + fc806e9 commit 5323d09

12 files changed

+677
-451
lines changed

.travis.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,48 +14,38 @@ branches:
1414

1515
matrix:
1616
include:
17-
- php: 5.5
18-
env: WP_VERSION=latest WP_MULTISITE=0 PHP_UNIT_VERSION=4.8
19-
- php: 5.6
20-
env: WP_VERSION=latest WP_MULTISITE=0 PHP_UNIT_VERSION=4.8
21-
- php: 7.0
22-
env: WP_VERSION=latest WP_MULTISITE=0 PHP_UNIT_VERSION=5.7
2317
- php: 7.1
2418
env: WP_VERSION=latest WP_MULTISITE=0 PHP_UNIT_VERSION=6.3
25-
- php: 5.5
26-
env: WP_VERSION=latest WP_MULTISITE=1 PHP_UNIT_VERSION=4.8
27-
- php: 5.6
28-
env: WP_VERSION=latest WP_MULTISITE=1 PHP_UNIT_VERSION=4.8
29-
- php: 7.0
30-
env: WP_VERSION=latest WP_MULTISITE=1 PHP_UNIT_VERSION=5.7
3119
- php: 7.1
3220
env: WP_VERSION=latest WP_MULTISITE=1 PHP_UNIT_VERSION=6.3
3321
fast_finish: true
3422

3523
# Composer package installation
3624
install:
37-
# Install composer packages, will also trigger dump-autoload
38-
- composer install
25+
- cd $TRAVIS_BUILD_DIR
26+
# Install WP CLI
27+
- curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
28+
- chmod +x wp-cli.phar
29+
- sudo mv wp-cli.phar /usr/local/bin/wp
3930
# Install coveralls.phar
40-
- wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
41-
- chmod +x coveralls.phar
42-
- php coveralls.phar --version
31+
#- wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
32+
#- chmod +x coveralls.phar
33+
#- php coveralls.phar --version
4334

4435
before_script:
4536
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
4637
- composer self-update
47-
- composer require phpunit/phpunit:$PHP_UNIT_VERSION
38+
# - composer require phpunit/phpunit:$PHP_UNIT_VERSION
4839
- composer install --no-interaction
4940
- mkdir -p build/logs
5041
- ls -al
5142

5243
script:
53-
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
44+
- vendor/bin/codecept run wpunit
5445

5546
after_success:
56-
- travis_retry php coveralls.phar -v
47+
# - travis_retry php coveralls.phar -v
5748

5849
cache:
5950
directories:
60-
- vendor
6151
- $HOME/.composer/cache

bin/install-wp-tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ WP_VERSION=${5-latest}
1313
SKIP_DB_CREATE=${6-false}
1414

1515
PLUGIN_DIR=$(pwd)
16-
WP_TESTS_DIR=${WP_TESTS_DIR-/tmp/wordpress-tests-lib}
17-
WP_CORE_DIR=${WP_CORE_DIR-/tmp/wordpress/}
16+
WP_TESTS_DIR=${WP_TESTS_DIR-/tmp/wp-graphql-jwt-authentication}
17+
WP_CORE_DIR=${WP_CORE_DIR-/tmp/wp-graphql-jwt-authentication/}
1818
DB_SERVE_NAME=${DB_SERVE_NAME-wpgraphql_jwt_auth_serve}
1919

2020
download() {
@@ -169,4 +169,4 @@ install_test_suite
169169
install_db
170170
configure_wordpress
171171
install_wpgraphql
172-
activate_plugins
172+
activate_plugins

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "wp-graphql/wp-graphql-jwt-authentication",
33
"description": "JWT Authentication for WPGraphQL",
44
"type": "wordpress-plugin",
5-
"version": "0.3.0",
5+
"version": "0.3.1",
66
"license": "GPL-3.0+",
77
"authors": [
88
{

0 commit comments

Comments
 (0)