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

WIP: Adds tutorial projects to ws + fixes desktop file formatting #27

Closed
wants to merge 2 commits into from
Closed
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ This repository is used to automatically build an [eMoflon](https://emoflon.org)
- The default configuration for this VM image consists 8GB of RAM and 2 vCPU cores.
You need at least 8GB to run the full [eMoflon::IBeX test suite](https://github.com/eMoflon/emoflon-ibex-tests). If your PC only has 8GB of RAM available, reduce the RAM capacity of the VM within VirtualBox
- It is recommend to change the settings to at least 4 vCPU cores.
- The default Eclipse workspace (`home/vagrant/eclipse-workspace`) contains the [eMoflon::IBeX tutorial projects](https://github.com/eMoflon/emoflon-ibex-tutorial).


## Runner requirements
Expand Down
27 changes: 19 additions & 8 deletions prov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
# Config
#

# Eclipse build to use for provisioning
ECLIPSE_ARCHIVE=eclipse-emoflon-linux-user

# If true, add tutorial projects to the default Eclipse workspace
TUTORIAL_PROJECTS=true

set -e
START_PWD=$PWD

Expand Down Expand Up @@ -65,8 +69,7 @@ rm -f $ECLIPSE_ARCHIVE.zip
# Create desktop launchers
mkdir -p /home/vagrant/Desktop
touch /home/vagrant/Desktop/emoflon-app.desktop
printf "
[Desktop Entry]
printf "[Desktop Entry]
Version=1.0
Name=eMoflon::IBeX Eclipse
Comment=Use eMoflon::IBeX Eclipse
Expand All @@ -80,8 +83,7 @@ StartupNotify=true
" > /home/vagrant/Desktop/emoflon-app.desktop

touch /home/vagrant/Desktop/emoflon-website.desktop
printf "
[Desktop Entry]
printf "[Desktop Entry]
Encoding=UTF-8
Name=eMoflon::IBeX Website
Type=Link
Expand All @@ -90,8 +92,7 @@ Icon=web-browser
" > /home/vagrant/Desktop/emoflon-website.desktop

touch /home/vagrant/Desktop/emoflon-tutorial.desktop
printf "
[Desktop Entry]
printf "[Desktop Entry]
Encoding=UTF-8
Name=eMoflon::IBeX Tutorial
Type=Link
Expand All @@ -100,8 +101,7 @@ Icon=web-browser
" > /home/vagrant/Desktop/emoflon-tutorial.desktop

touch /home/vagrant/Desktop/emoflon-tests.desktop
printf "
[Desktop Entry]
printf "[Desktop Entry]
Encoding=UTF-8
Name=eMoflon::IBeX Test Suite
Type=Link
Expand All @@ -122,4 +122,15 @@ sudo apt-get remove -yq \
sudo apt-get autoremove -yq
sudo apt-get clean cache

# Setup tutorial workspace if configured
if [ "$TUTORIAL_PROJECTS" = true ]; then
log "Download and import eMoflon::IBeX tutorial projects into workspace."
WS=/home/vagrant/eclipse-workspace
rm -rf $WS && mkdir -p $WS/git
cd /$WS/git
git clone https://github.com/eMoflon/emoflon-ibex-tutorial.git
cd /home/vagrant/eclipse-apps/eclipse
./eclipse -noSplash -consoleLog -data $WS -application com.seeq.eclipse.importprojects.headlessimport -importProject $WS/git/emoflon-ibex-tutorial
fi

log "Finished provisioning."