Github download

This commit is contained in:
Ganesh Viswanathan 2018-11-02 22:04:09 -05:00
commit 03c38a2448

View file

@ -9,9 +9,9 @@ addons:
packages:
- libssh2-1-dev
before_script:
- curl -u $TOKEN --silent https://api.github.com/repos/nim-lang/nightlies/releases/latest -o latest.json
- export RELEASE=`echo latest.json | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
- export TXZ=`echo latest.json | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | grep linux`
- curl -u $TOKEN -o latest.json https://api.github.com/repos/nim-lang/nightlies/releases/latest
- export RELEASE=`cat latest.json | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
- export TXZ=`cat latest.json | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | grep linux`
- export VERSION=`echo $TXZ | cut -d"-" -f 2,2`
- echo "RELEASE = $RELEASE, TXZ = $TXZ, VERSION = $VERSION"
- tar xf $TXZ