Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add travis CI configuration for the SeRoNet installer #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: bash

matrix:
include:
- os: linux
dist: xenial
sudo: required
- os: linux
dist: bionic
sudo: required
before_install:
- sudo apt-get -y install zenity
script:
- bash SeRoNet-Infrastructure-Installer-latest.sh non-visual-installation
20 changes: 20 additions & 0 deletions SeRoNet-Infrastructure-Installer-latest.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -545,4 +545,24 @@ ros)
fi
;;

###############################################################################
non-visual-installation)

CURRENT_ACTION_NUMBER=$((0))
ACTIONS="ace-smartsoft opcua-backend opcua-devices ros"
SELECTED_ACTIONS_COUNTER=4
for CURR_ACTION in $ACTIONS; do
# execute the next action
echo "#### Execute installation step $CURR_ACTION ####"
bash $SCRIPT_NAME $CURR_ACTION $INSTALLATION_DIR $LOGFILE $CURRENT_ACTION_NUMBER $SELECTED_ACTIONS_COUNTER
# abort executing further commands if the previos command returned with != 0
if [ $? -ne 0 ]; then
exit $?
fi
# calculate the progress percentage number and print it to the /tmp/install-msg.log
CURRENT_ACTION_NUMBER=$(($CURRENT_ACTION_NUMBER + 1))
awk "BEGIN { print $CURRENT_ACTION_NUMBER/$SELECTED_ACTIONS_COUNTER*100 }" >> /tmp/install-msg.log
done
;;

esac