This commit is contained in:
Ganesh Viswanathan 2018-11-27 18:01:38 -06:00
commit b8cddadfd0
2 changed files with 112 additions and 0 deletions

26
.travis.yml Normal file
View file

@ -0,0 +1,26 @@
sudo: false
language: c
os:
- linux
- osx
dist: trusty
before_script:
- curl -u $TOKEN -o latest.json --silent 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 | tail -n 1`
- export VERSION=`echo $TXZ | cut -d"-" -f 2,2`
- echo "RELEASE = $RELEASE, TXZ = $TXZ, VERSION = $VERSION"
- curl -L --silent -o $TXZ "https://github.com/nim-lang/nightlies/releases/download/$RELEASE/$TXZ"
- 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 installWithDeps
- nimble test