This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10431 from EOSIO/develop_package_tests
Test packaged EOSIO Linux artifacts against standard dockers.
- Loading branch information
Showing
3 changed files
with
87 additions
and
0 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,25 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
echo '+++ :minidisc: Installing EOSIO' | ||
|
||
if [[ $(apt-get --version 2>/dev/null) ]]; then # debian family | ||
UPDATE='apt-get update' | ||
echo "$ $UPDATE" | ||
eval $UPDATE | ||
INSTALL="apt-get install -y /eos/*.deb" | ||
echo "$ $INSTALL" | ||
eval $INSTALL | ||
elif [[ $(yum --version 2>/dev/null) ]]; then # RHEL family | ||
UPDATE='yum check-update || :' | ||
echo "$ $UPDATE" | ||
eval $UPDATE | ||
INSTALL="yum install -y /eos/*.rpm" | ||
echo "$ $INSTALL" | ||
eval $INSTALL | ||
else | ||
echo 'ERROR: Package manager not detected!' | ||
exit 3 | ||
fi | ||
|
||
nodeos --full-version |
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,7 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
echo '--- :docker: Selecting Container' | ||
|
||
docker pull $IMAGE | ||
docker run --rm -v "$(pwd):/eos" -w '/eos' -it $IMAGE ./.cicd/test-package.run.sh |