Skip to content

Commit

Permalink
tests: run e2e tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannibaratta committed Nov 21, 2023
1 parent 59229b5 commit 8514d31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .devcontainer/install_dependencies.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jekyll_dependencies=(
zlib1g-dev
)

parallel_dependencies=(
parallel=20210822+ds-2
)

lefthook_dependencies=(
lefthook=1.5.2
Expand All @@ -24,6 +27,7 @@ curl -1sLf \

sudo apt-get install -y \
"${jekyll_dependencies[@]}" \
"${parallel_dependencies[@]}" \
"${lefthook_dependencies[@]}"

# Notify other scripts that all the dependencies are installed
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -e
SCRIPT_DIR=$(readlink -f $(dirname "$0"))

docker build --tag bats-e2e-custom-image "${SCRIPT_DIR}"
docker run -t -v "${SCRIPT_DIR}/suites:/code/suites:ro" -v "${SCRIPT_DIR}/terraapprove:/code/terraapprove:ro" bats-e2e-custom-image -r suites
docker run -t -v "${SCRIPT_DIR}/suites:/code/suites:ro" -v "${SCRIPT_DIR}/terraapprove:/code/terraapprove:ro" bats-e2e-custom-image -r suites --jobs 4

0 comments on commit 8514d31

Please sign in to comment.