-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: setup consensus module e2e tests
- Loading branch information
Showing
4 changed files
with
55 additions
and
24 deletions.
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,5 @@ | ||
OASIS_CORE_VERSION=21.1-dev | ||
# To download a pre-released version of oasis-core built by oasis-core/release-dev action | ||
# set artifact ID to use here. | ||
# To download a released version of oasis-core unset this variable. | ||
GITHUB_ARTIFACT=55594708 |
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,22 @@ | ||
#!/bin/sh -eux | ||
. ./consts.sh | ||
|
||
mkdir -p untracked | ||
if [ ! -e "untracked/oasis_core_${OASIS_CORE_VERSION}_linux_amd64/oasis-node" ]; then | ||
( | ||
cd untracked | ||
if [ ! -z "${GITHUB_ARTIFACT:-}" ]; then | ||
# Authentication is required to download the artifacts, although those are public. | ||
curl -fLO -h "Authorization: Bearer ${GITHUB_TOKEN}" "https://api.github.com/repos/oasisprotocol/oasis-core/actions/artifacts/${GITHUB_ARTIFACT}/zip" | ||
unzip oasis-core.zip | ||
else | ||
curl -fLO "https://github.com/oasisprotocol/oasis-core/releases/download/v$OASIS_CORE_VERSION/oasis_core_${OASIS_CORE_VERSION}_linux_amd64.tar.gz" | ||
fi | ||
|
||
tar -xf "oasis_core_${OASIS_CORE_VERSION}_linux_amd64.tar.gz" \ | ||
--strip-components=1 \ | ||
"oasis_core_${OASIS_CORE_VERSION}_linux_amd64/oasis-node" \ | ||
"oasis_core_${OASIS_CORE_VERSION}_linux_amd64/oasis-net-runner" \ | ||
"oasis_core_${OASIS_CORE_VERSION}_linux_amd64/oasis-core-runtime-loader" | ||
) | ||
fi |
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