Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cabal_build_tests scripts to allow testing builds at commits.
The scripts were previously only aimed at build-testing `cardano-node` tags. The script can now also build-test specific commit hashes. Other changes: * Include installation of missing package dependencies (openssl, lmdb). * Include Secp256k1 installation. * "Parameterise" the script with cabal and ghc versions. * Installing of `cardano-cli` and `cardano-node` executables simplified.
- Loading branch information
Showing
4 changed files
with
173 additions
and
43 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
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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
#!/bin/bash | ||
|
||
GIT_OBJECT_TYPE="" | ||
GIT_OBJECT="" | ||
|
||
while getopts t:o: flag | ||
do | ||
case "${flag}" in | ||
t) GIT_OBJECT_TYPE=${OPTARG};; | ||
o) GIT_OBJECT=${OPTARG};; | ||
*) echo "Error in command line parsing" >&2 | ||
exit 1 | ||
esac | ||
done | ||
|
||
docker build . -f fedora/Dockerfile -t cardano-node-fedora && \ | ||
docker run --security-opt label:disable -it -e TAGGED_VERSION="$1" cardano-node-fedora | ||
docker run --security-opt label:disable -it -e GIT_OBJECT_TYPE="$GIT_OBJECT_TYPE" -e GIT_OBJECT="$GIT_OBJECT" cardano-node-fedora |
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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
#!/bin/bash | ||
|
||
GIT_OBJECT_TYPE="" | ||
GIT_OBJECT="" | ||
|
||
while getopts t:o: flag | ||
do | ||
case "${flag}" in | ||
t) GIT_OBJECT_TYPE=${OPTARG};; | ||
o) GIT_OBJECT=${OPTARG};; | ||
*) echo "Error in command line parsing" >&2 | ||
exit 1 | ||
esac | ||
done | ||
|
||
docker build . -f ubuntu/Dockerfile -t cardano-node-ubuntu && \ | ||
docker run --security-opt label:disable -it -e TAGGED_VERSION="$1" cardano-node-ubuntu | ||
docker run --security-opt label:disable -it -e GIT_OBJECT_TYPE="$GIT_OBJECT_TYPE" -e GIT_OBJECT="$GIT_OBJECT" cardano-node-ubuntu |