Skip to content

Commit

Permalink
#1342: Update php version tests to be stricter
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Feb 26, 2019
1 parent 22563b0 commit f961b08
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion examples/backdrop/README.md
Expand Up @@ -35,7 +35,7 @@ lando ssh -s appserver -c "curl -L localhost" | grep "Backdrop CMS 1"

# Should use 7.2 as the default php version
cd backdrop
lando php -v | grep 7.2
lando php -v | grep "PHP 7.2"

# Should be running apache 2.4 by default
cd backdrop
Expand Down
2 changes: 1 addition & 1 deletion examples/drupal6/README.md
Expand Up @@ -35,7 +35,7 @@ lando ssh -s appserver -c "curl -L localhost" | grep "Choose language"

# Should use 5.6 as the default php version
cd drupal6
lando php -v | grep 5.6
lando php -v | grep "PHP 5.6"

# Should be running apache 2.4 by default
cd drupal6
Expand Down
2 changes: 1 addition & 1 deletion examples/drupal7/README.md
Expand Up @@ -35,7 +35,7 @@ lando ssh -s appserver -c "curl -L localhost" | grep "Drupal 7"

# Should use 7.2 as the default php version
cd drupal7
lando php -v | grep 7.2
lando php -v | grep "PHP 7.2"

# Should be running apache 2.4 by default
cd drupal7
Expand Down
2 changes: 1 addition & 1 deletion examples/drupal8/README.md
Expand Up @@ -35,7 +35,7 @@ lando ssh -s appserver -c "curl -L localhost" | grep "Drupal 8"

# Should use 7.2 as the default php version
cd drupal8
lando php -v | grep 7.2
lando php -v | grep "PHP 7.2"

# Should be running apache 2.4 by default
cd drupal8
Expand Down
2 changes: 1 addition & 1 deletion examples/joomla/README.md
Expand Up @@ -35,7 +35,7 @@ lando ssh -s appserver -c "curl -L localhost" | grep "Joomla"

# Should use 7.2 as the default php version
cd joomla
lando php -v | grep 7.2
lando php -v | grep "PHP 7.2"

# Should be running apache 2.4 by default
cd joomla
Expand Down
4 changes: 2 additions & 2 deletions examples/lamp/README.md
Expand Up @@ -33,9 +33,9 @@ Run the following commands to validate things are rolling as they should.
cd lamp
lando ssh -s appserver -c "curl -L localhost" | grep "CodeIgniter"

# Should use 7.2 as the default php version
# Should use 7.3 as the default php version
cd lamp
lando php -v | grep 7.2
lando php -v | grep "PHP 7.3"

# Should be running apache 2.4 by default
cd lamp
Expand Down
2 changes: 1 addition & 1 deletion examples/laravel/README.md
Expand Up @@ -39,7 +39,7 @@ lando ssh -s appserver -c "curl -L localhost" | grep "Laravel"

# Should use 7.2 as the default php version
cd laravel
lando php -v | grep 7.2
lando php -v | grep "PHP 7.2"

# Should be running apache 2.4 by default
cd laravel
Expand Down
4 changes: 2 additions & 2 deletions examples/lemp/README.md
Expand Up @@ -33,9 +33,9 @@ Run the following commands to validate things are rolling as they should.
cd lemp
lando ssh -s appserver_nginx -c "curl -L localhost" | grep "CakePHP"

# Should use 7.2 as the default php version
# Should use 7.3 as the default php version
cd lemp
lando php -v | grep 7.2
lando php -v | grep "PHP 7.3"

# Should be running nginx 1.x by default
cd lemp
Expand Down
10 changes: 5 additions & 5 deletions examples/php/README.md
Expand Up @@ -22,8 +22,8 @@ Verification commands
Run the following commands to validate things are rolling as they should.

```bash
# Should use 7.2 as the default php version
lando ssh -s defaults -c "php -v | grep 7.2"
# Should use 7.3 as the default php version
lando ssh -s defaults -c "php -v" | grep "PHP 7.3"

# Should use apache 2.4 as the default webserver version
lando ssh -s defaults -c "apachectl -V | grep 2.4."
Expand All @@ -45,7 +45,7 @@ lando ssh -s defaults -c "php -i | grep memory_limit | grep -e \"-1\""
lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1

# Should use specified php version if given
lando ssh -s custom -c "php -v | grep 7.1"
lando ssh -s custom -c "php -v" | grep "PHP 7.1"

# Should serve via nginx if specified
lando ssh -s custom_nginx -c "curl http://localhost | grep WEBDIR"
Expand All @@ -68,10 +68,10 @@ lando ssh -s custom -c "env | grep DUALBLADE | grep maxim"
lando ssh -s custom_nginx -c "env | grep DUALBLADE | grep maxim"

# Should use specified php version if given
lando ssh -s cliold -c "php -v | grep 5.6"
lando ssh -s cliold -c "php -v" | grep "PHP 5.6"

# Should use specified php version if given
lando ssh -s composer -c "php -v | grep 7.0"
lando ssh -s composer -c "php -v" | grep "PHP 7.0"

# Should install compose global dependencies if specified by user and have them available in PATH
lando ssh -s composer -c "phpunit --version"
Expand Down
4 changes: 2 additions & 2 deletions examples/wordpress/README.md
Expand Up @@ -33,9 +33,9 @@ Run the following commands to validate things are rolling as they should.
cd wordpress
lando ssh -s appserver -c "curl -L localhost" | grep "WordPress"

# Should use 7.2 as the default php version
# Should use 7.3 as the default php version
cd wordpress
lando php -v | grep 7.2
lando php -v | grep "PHP 7.3"

# Should be running apache 2.4 by default
cd wordpress
Expand Down

0 comments on commit f961b08

Please sign in to comment.