Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
- update install-test-env.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Jul 19, 2021
1 parent f34bb96 commit d8795da
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ vendor/composer/installed.json
vendor/composer/*/
composer.lock
.log
local
wp-content

7 changes: 4 additions & 3 deletions bin/install-test-env.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/usr/bin/env bash

if [[ ! -f ".env" ]]; then
if [ ! -f .env ]; then
echo "No .env file was detected. .env.dist has been copied to .env"
echo "Open the .env file and enter values to match your local environment"
cp .env.dist .env
cp ./.env.dist ./.env
export $(cat .env | xargs)
fi

source .env.dist
source .env

env | sort

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"phpstan": ["phpstan analyze --ansi --memory-limit=1G"]
},
"require": {
"php": "^7"
"php": "^7.1 || ^8.0"
},
"require-dev": {
"lucatume/wp-browser": "^2.4",
Expand Down
12 changes: 6 additions & 6 deletions vendor/composer/InstalledVersions.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ class InstalledVersions
private static $installed = array (
'root' =>
array (
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
'aliases' =>
array (
),
'reference' => 'dc5e83d190211baf88978a905ff44a9122fdaff8',
'reference' => 'f34bb96ba52af54541439299b04e2b95d4f7564a',
'name' => 'wp-graphql/wp-graphql-acf',
),
'versions' =>
array (
'wp-graphql/wp-graphql-acf' =>
array (
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
'aliases' =>
array (
),
'reference' => 'dc5e83d190211baf88978a905ff44a9122fdaff8',
'reference' => 'f34bb96ba52af54541439299b04e2b95d4f7564a',
),
),
);
Expand Down
12 changes: 6 additions & 6 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<?php return array (
'root' =>
array (
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
'aliases' =>
array (
),
'reference' => 'dc5e83d190211baf88978a905ff44a9122fdaff8',
'reference' => 'f34bb96ba52af54541439299b04e2b95d4f7564a',
'name' => 'wp-graphql/wp-graphql-acf',
),
'versions' =>
array (
'wp-graphql/wp-graphql-acf' =>
array (
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'pretty_version' => 'dev-develop',
'version' => 'dev-develop',
'aliases' =>
array (
),
'reference' => 'dc5e83d190211baf88978a905ff44a9122fdaff8',
'reference' => 'f34bb96ba52af54541439299b04e2b95d4f7564a',
),
),
);
4 changes: 2 additions & 2 deletions vendor/composer/platform_check.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

$issues = array();

if (!(PHP_VERSION_ID >= 70000)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.0.0". You are running ' . PHP_VERSION . '.';
if (!(PHP_VERSION_ID >= 70100)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.1.0". You are running ' . PHP_VERSION . '.';
}

if ($issues) {
Expand Down

0 comments on commit d8795da

Please sign in to comment.