-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build local image to run tests with make e2e-test (#1722)
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
SUITE="${1}" | ||
TEST="${2}" | ||
export SIMD_TAG="${SIMD_TAG:-latest}" | ||
export SIMD_IMAGE="${SIMD_IMAGE:-ibc-go-simd-e2e}" | ||
|
||
# In CI, the docker images will be built separately. | ||
# context for building the image is one directory up. | ||
if [ "${CI:-}" != "true" ] | ||
then | ||
(cd ..; docker build . -t "${SIMD_IMAGE}:${SIMD_TAG}") | ||
fi | ||
|
||
go test -v ./ --run ${SUITE} -testify.m ^${TEST}$ |