mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 19:46:50 +03:00
move pill fetch to script
This commit is contained in:
parent
ead4f48712
commit
106838e7cf
@ -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
16
.travis/make-pill.sh
Normal 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
|
1
.travis/pin-parent-pill.url
Normal file
1
.travis/pin-parent-pill.url
Normal file
@ -0,0 +1 @@
|
||||
https://github.com/ohAitch/urbit/releases/download/untagged-4dd5d7e977e58b5f1e21/urbit
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user