nimgenEx/.travis.yml
Ganesh Viswanathan d6c827bb28 Github download
2018-11-02 22:18:05 -05:00

29 lines
847 B
YAML

sudo: false
language: c
os:
- linux
- osx
dist: trusty
addons:
apt:
packages:
- libssh2-1-dev
before_script:
- curl -u $TOKEN -o latest.json --silent https://api.github.com/repos/nim-lang/nightlies/releases/latest
- curl -u $TOKEN https://api.github.com/repos/nim-lang/nightlies/releases/latest
- cat latest.json
- 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
- cd nim-$VERSION
- sh build.sh
- bin/nim c koch
- ./koch boot -d:release
- ./koch nimble
- export PATH=$(pwd)/bin:~/.nimble/bin:$PATH
- cd ..
script:
- nimble install -y
- nimble test