Skip to content

Commit

Permalink
stdout versions during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeledy committed Dec 3, 2024
1 parent a6b535f commit 1c07458
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions examples/8.1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Run the following commands to validate things are rolling as they should.

```bash
# Should use 8.1 as the default php version
lando exec defaults -- php -v | grep "PHP 8.1"
lando exec defaults -- php -v | tee >(cat 1>&2) | grep "PHP 8.1"

# Should use 13.x as the default postgresql-client version
lando exec defaults -- psql -V | grep "13."
lando exec defaults -- psql -V | tee >(cat 1>&2) | grep "13."

# Should use apache 2.4 as the default webserver version
lando exec defaults -- apachectl -V | grep "2.4."
lando exec defaults -- apachectl -V | tee >(cat 1>&2) | grep "2.4."

# Should only serve over http by default
lando exec defaults -- curl https://localhost || echo $? | grep 7
Expand Down Expand Up @@ -57,7 +57,7 @@ lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO
lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED

# Should use specified php version if given
lando exec custom -- php -v | grep "PHP 8.1"
lando exec custom -- php -v | tee >(cat 1>&2) | grep "PHP 8.1"

# Should install composer 2.1.12 if version number is set
lando exec custom -- composer --version --no-ansi | grep "Composer version 2.1.12"
Expand Down Expand Up @@ -114,7 +114,7 @@ lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity
lando exec cliworker -- composer --version --no-ansi | grep "Composer version 2."

# Should have node14 installed in cli service
lando node -v | grep v14.
lando node -v | tee >(cat 1>&2) | grep v14.
```

## Destroy tests
Expand Down
10 changes: 5 additions & 5 deletions examples/8.2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Run the following commands to validate things are rolling as they should.

```bash
# Should use 8.2 as the default php version
lando exec defaults -- php -v | grep "PHP 8.2"
lando exec defaults -- php -v | tee >(cat 1>&2) | grep "PHP 8.2"

# Should use 13.x as the default postgresql-client version
lando exec defaults -- psql -V | grep "13."
lando exec defaults -- psql -V | tee >(cat 1>&2) | grep "13."

# Should use apache 2.4 as the default webserver version
lando exec defaults -- apachectl -V | grep "2.4."
lando exec defaults -- apachectl -V | tee >(cat 1>&2) | grep "2.4."

# Should only serve over http by default
lando exec defaults -- curl https://localhost || echo $? | grep 7
Expand Down Expand Up @@ -57,7 +57,7 @@ lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO
lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED

# Should use specified php version if given
lando exec custom -- php -v | grep "PHP 8.2"
lando exec custom -- php -v | tee >(cat 1>&2) | grep "PHP 8.2"

# Should install composer 2.2.18 if version number is set
lando exec custom -- composer --version --no-ansi | grep "Composer version 2.2.18"
Expand Down Expand Up @@ -114,7 +114,7 @@ lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity
lando exec cliworker -- composer --version --no-ansi | grep "Composer version 2."

# Should have node14 installed in cli service
lando node -v | grep v14.
lando node -v | tee >(cat 1>&2) | grep v14.
```

## Destroy tests
Expand Down
10 changes: 5 additions & 5 deletions examples/8.3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Run the following commands to validate things are rolling as they should.

```bash
# Should use 8.3 as the default php version
lando exec defaults -- php -v | grep "PHP 8.3"
lando exec defaults -- php -v | tee >(cat 1>&2) | grep "PHP 8.3"

# Should use 13.x as the default postgresql-client version
lando exec defaults -- psql -V | grep "13."
lando exec defaults -- psql -V | tee >(cat 1>&2) | grep "13."

# Should use apache 2.4 as the default webserver version
lando exec defaults -- apachectl -V | grep "2.4."
lando exec defaults -- apachectl -V | tee >(cat 1>&2) | grep "2.4."

# Should only serve over http by default
lando exec defaults -- curl https://localhost || echo $? | grep 7
Expand Down Expand Up @@ -57,7 +57,7 @@ lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO
lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED

# Should use specified php version if given
lando exec custom -- php -v | grep "PHP 8.3"
lando exec custom -- php -v | tee >(cat 1>&2) | grep "PHP 8.3"

# Should install composer 2.5.6 if version number is set
lando exec custom -- composer --version --no-ansi | grep "Composer version 2.5.6"
Expand Down Expand Up @@ -114,7 +114,7 @@ lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity
lando exec cliworker -- composer --version --no-ansi | grep "Composer version 2."

# Should have node14 installed in cli service
lando node -v | grep v14.
lando node -v | tee >(cat 1>&2) | grep v14.
```

## Destroy tests
Expand Down
10 changes: 5 additions & 5 deletions examples/8.4/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Run the following commands to validate things are rolling as they should.

```bash
# Should use 8.4 as the default php version
lando exec defaults -- php -v | grep "PHP 8.4"
lando exec defaults -- php -v | tee >(cat 1>&2) | grep "PHP 8.4"

# Should use 15.x as the default postgresql-client version
lando exec defaults -- psql -V | grep "15."
lando exec defaults -- psql -V | tee >(cat 1>&2) | grep "15."

# Should use apache 2.4 as the default webserver version
lando exec defaults -- apachectl -V | grep "2.4."
lando exec defaults -- apachectl -V | tee >(cat 1>&2) | grep "2.4."

# Should only serve over http by default
lando exec defaults -- curl https://localhost || echo $? | grep 7
Expand Down Expand Up @@ -57,7 +57,7 @@ lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_INFO
lando exec custom_nginx -- curl https://localhost | grep SERVER | grep PATH_TRANSLATED

# Should use specified php version if given
lando exec custom -- php -v | grep "PHP 8.4"
lando exec custom -- php -v | tee >(cat 1>&2) | grep "PHP 8.4"

# Should install composer 2.5.6 if version number is set
lando exec custom -- composer --version --no-ansi | grep "Composer version 2.5.6"
Expand Down Expand Up @@ -111,7 +111,7 @@ lando info -s cliworker --deep | grep Cmd | grep sleep | grep infinity
lando exec cliworker -- composer --version --no-ansi | grep "Composer version 2."

# Should have node 18 installed in cli service
lando node -v | grep v18.
lando node -v | tee >(cat 1>&2) | grep v18.
```

## Destroy tests
Expand Down

0 comments on commit 1c07458

Please sign in to comment.