Created
June 19, 2015 23:46
-
-
Save ekolker/6ed3699b79972a77bb46 to your computer and use it in GitHub Desktop.
Scripts for the Tessel 2 testalator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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