Travis fixes

This commit is contained in:
Ganesh Viswanathan 2018-11-02 10:55:05 -05:00
commit 713703caae
2 changed files with 11 additions and 2 deletions

View file

@ -4,11 +4,19 @@ os:
- linux
- osx
dist: trusty
addons:
apt:
packages:
- python-pygments
- libssh2-1-dev
- libgcrypt20-dev
- libgpg-error-dev
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
- 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
@ -19,4 +27,4 @@ before_script:
- cd ..
script:
- nimble install -y
- nimble tests
- nimble test

View file

@ -1,5 +1,6 @@
[![Chat on Gitter](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/nimgen/Lobby)
[![Build status](https://ci.appveyor.com/api/projects/status/05t5ja88lmv1rt3r/branch/master?svg=true)](https://ci.appveyor.com/project/genotrance/nimgen/branch/master)
[![Build Status](https://travis-ci.org/genotrance/nimgen.svg?branch=master)](https://travis-ci.org/genotrance/nimgen)
Nimgen is a helper for [c2nim](https://github.com/nim-lang/c2nim/) to simplify and automate the wrapping of C libraries.