Add Travis for devel/OSX

This commit is contained in:
Ganesh Viswanathan 2018-11-02 10:38:38 -05:00
commit ee7a55f2ec

22
.travis.yml Normal file
View file

@ -0,0 +1,22 @@
sudo: false
language: c
os:
- linux
- osx
dist: trusty
before_script:
- export RELEASE=`curl --silent https://api.github.com/repos/nim-lang/nightlies/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
- export TXZ=`curl --silent https://api.github.com/repos/nim-lang/nightlies/releases/latest | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | grep linux`
- export VERSION=`echo $TXZ | cut -d"-" -f 2,2`
- 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:$PATH
- cd ..
script:
- nimble install -y
- nimble tests