Skip to content

Commit

Permalink
Add env variables to e2e tests to make the tests more portable (bamar…
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Jul 10, 2022
1 parent aa8fa44 commit 468af9d
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e/scenario0/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -Eeuo pipefail

# Set env envariables in order to experience a behaviour closer to what happens
# in the CI locally. It should not hurt to set those in the CI as the CI should
# contain those values.
export CI=1
export COMPOSER_NO_INTERACTION=1

readonly ORIGINAL_WORKING_DIR=$(pwd)

trap "cd ${ORIGINAL_WORKING_DIR}" err exit
Expand Down
6 changes: 6 additions & 0 deletions e2e/scenario1/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -Eeuo pipefail

# Set env envariables in order to experience a behaviour closer to what happens
# in the CI locally. It should not hurt to set those in the CI as the CI should
# contain those values.
export CI=1
export COMPOSER_NO_INTERACTION=1

readonly ORIGINAL_WORKING_DIR=$(pwd)

trap "cd ${ORIGINAL_WORKING_DIR}" err exit
Expand Down
6 changes: 6 additions & 0 deletions e2e/scenario2/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -Eeuo pipefail

# Set env envariables in order to experience a behaviour closer to what happens
# in the CI locally. It should not hurt to set those in the CI as the CI should
# contain those values.
export CI=1
export COMPOSER_NO_INTERACTION=1

readonly ORIGINAL_WORKING_DIR=$(pwd)

trap "cd ${ORIGINAL_WORKING_DIR}" err exit
Expand Down
6 changes: 6 additions & 0 deletions e2e/scenario3/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -Eeuo pipefail

# Set env envariables in order to experience a behaviour closer to what happens
# in the CI locally. It should not hurt to set those in the CI as the CI should
# contain those values.
export CI=1
export COMPOSER_NO_INTERACTION=1

readonly ORIGINAL_WORKING_DIR=$(pwd)

trap "cd ${ORIGINAL_WORKING_DIR}" err exit
Expand Down
6 changes: 6 additions & 0 deletions e2e/scenario5/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -Eeuo pipefail

# Set env envariables in order to experience a behaviour closer to what happens
# in the CI locally. It should not hurt to set those in the CI as the CI should
# contain those values.
export CI=1
export COMPOSER_NO_INTERACTION=1

readonly ORIGINAL_WORKING_DIR=$(pwd)

trap "cd ${ORIGINAL_WORKING_DIR}" err exit
Expand Down
6 changes: 6 additions & 0 deletions e2e/scenario6/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -Eeuo pipefail

# Set env envariables in order to experience a behaviour closer to what happens
# in the CI locally. It should not hurt to set those in the CI as the CI should
# contain those values.
export CI=1
export COMPOSER_NO_INTERACTION=1

readonly ORIGINAL_WORKING_DIR=$(pwd)

trap "cd ${ORIGINAL_WORKING_DIR}" err exit
Expand Down
6 changes: 6 additions & 0 deletions e2e/scenario7/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -Eeuo pipefail

# Set env envariables in order to experience a behaviour closer to what happens
# in the CI locally. It should not hurt to set those in the CI as the CI should
# contain those values.
export CI=1
export COMPOSER_NO_INTERACTION=1

readonly ORIGINAL_WORKING_DIR=$(pwd)

trap "cd ${ORIGINAL_WORKING_DIR}" err exit
Expand Down
6 changes: 6 additions & 0 deletions e2e/scenario8/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -Eeuo pipefail

# Set env envariables in order to experience a behaviour closer to what happens
# in the CI locally. It should not hurt to set those in the CI as the CI should
# contain those values.
export CI=1
export COMPOSER_NO_INTERACTION=1

readonly ORIGINAL_WORKING_DIR=$(pwd)

trap "cd ${ORIGINAL_WORKING_DIR}" err exit
Expand Down

0 comments on commit 468af9d

Please sign in to comment.