From ca0852da63be1ad0be19a7428ccb8f2c17ccd183 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Sun, 6 May 2018 01:23:53 +0200 Subject: [PATCH] Add opm clone and make part for travis rpi cfg --- scripts/ci/rpi/mkimage.sh | 2 +- scripts/ci/rpi/pisetup.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/ci/rpi/mkimage.sh b/scripts/ci/rpi/mkimage.sh index 01fb31b..5120e18 100644 --- a/scripts/ci/rpi/mkimage.sh +++ b/scripts/ci/rpi/mkimage.sh @@ -75,7 +75,7 @@ cp "${MOUNT}/etc/ld.so.preload" "${MOUNT}/etc/_ld.so.preload" echo "" > "${MOUNT}/etc/ld.so.preload" # Run the installation script as if we would be inside the Raspberry Pi. -#chroot "${MOUNT}" "/tmp/${SCRIPT}" +chroot "${MOUNT}" "/tmp/${SCRIPT}" # Put back the old ld.so.preload script. mv "${MOUNT}/etc/_ld.so.preload" "${MOUNT}/etc/ld.so.preload" diff --git a/scripts/ci/rpi/pisetup.sh b/scripts/ci/rpi/pisetup.sh index e69de29..1f05d21 100644 --- a/scripts/ci/rpi/pisetup.sh +++ b/scripts/ci/rpi/pisetup.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +echo "Hello! Me is pisetup.sh script." + +cd /home/pi/openFrameworks/addons +git clone --depth=1 https://github.com/jeffcrouse/ofxJSON.git +git clone --depth=1 https://github.com/kr15h/ofxPiMapper.git + +cd ofxPiMapper/example_basic +make + +echo "Done!"