Add Travis for devel/OSX
This commit is contained in:
parent
f1a8d17891
commit
ee7a55f2ec
1 changed files with 22 additions and 0 deletions
22
.travis.yml
Normal file
22
.travis.yml
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue