-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Test packaged EOSIO Linux artifacts against standard dockers. #10429
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should use log-folding groups to hide everything from our customers except what they care about, which is just the installation and the echo '+++ :minidisc: Installing EOSIO' There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok. Should I put the the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Up to you. If you do, I would make both the installation and invocation expanded log groups ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Emoji are here. |
||
echo '--- :docker: Selecting Container' | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider another log folding group here to match the style of the other job steps. echo '--- :docker: Selecting Container' |
||
docker pull $IMAGE | ||
docker run --rm -v "$(pwd):/eos" -w '/eos' -it $IMAGE ./.cicd/test-package.run.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add
set -e
here so this script fails on error.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we should. I'm going to add
-u
also. I did it for the test script, but I guess not the wrapper...