Skip to content

Instantly share code, notes, and snippets.

@ekolker
Created June 19, 2015 23:46
Show Gist options
  • Save ekolker/6ed3699b79972a77bb46 to your computer and use it in GitHub Desktop.
Save ekolker/6ed3699b79972a77bb46 to your computer and use it in GitHub Desktop.
Scripts for the Tessel 2 testalator
# run me in the root directory of the test rig sw folder
set -ex
# get our dependencies in order
(cd client && npm install)
# bundle the test rig code
(cd .. && tar -cvzf ./t2-test-rig-sw/t2-test-rig-sw.tar.gz ./t2-test-rig-sw/* --exclude *.pyc --exclude client/node_modules/usb/build/*)
# upload them to the server
# ?? probably an scp call to the server
# set me to run automatically when the test rig laptop boots
set -ex
# download the tarball from the server
wget www.tessel.io #swap me for the real url
# unbundle
tar -xvzf t2-test-rig-sw.tar.gz
# run the script included
(cd t2-test-rig-sw && bash testalate.sh)
# called by download.sh, runs the testalator
set -ex
# (re)build dependencies
(cd t2-test-rig-sw/client/node_modules/usb/ &&
sudo rm -rf build &&
npm install --build-from-source &&
cd ../.. &&
npm install &&
# testalate
node run.js)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment