move pill fetch to script

This commit is contained in:
Anton Dyudin 2017-12-01 10:43:12 -08:00
parent ead4f48712
commit 106838e7cf
4 changed files with 19 additions and 6 deletions

View File

@ -7,9 +7,6 @@ before_install:
chmod +x ./urbit;
echo "FIXME downloaded raw urbit binary releaseinstead of .deb";
echo "FIXME read full pinned url instead of tag name"
- >
HASH=$(git -C .. log -1 HEAD --format="%H" -- sys/) &&
wget https://bootstrap.urbit.org/$HASH-master.pill -O urbit.pill;
echo "FIXME blindly assumed master pill"
before_script: bash make-pill.sh

16
.travis/make-pill.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# XX use -s instead of hash pill
HASH=$(git -C .. log -1 HEAD --format="%H" -- sys/)
echo FIXME blindly assuming master pill
wget https://bootstrap.urbit.org/$HASH-master.pill -O urbit.pill && exit 0
# if wget failed
if [ $TRAVIS_COMMIT ] && [ $TRAVIS_COMMIT != $HASH ]; then
echo Directory sys/ not modified in commit $TRAVIS_COMMIT
# echo For auto-build please tag and push $HASH
echo FIXME Please manually build and upload $HASH-master.pill
exit 1
fi
echo STUB should build a pill here
exit 1

View File

@ -0,0 +1 @@
https://github.com/ohAitch/urbit/releases/download/untagged-4dd5d7e977e58b5f1e21/urbit

View File

@ -3,7 +3,6 @@ pty = require \pty.js
term =
# TODO abort on failure
# XX use -s instead of travis wget'd pill
pty.spawn './urbit' <[-B urbit.pill -A .. -cFI zod zod]>
.on \data -> process.stdout.write it