Add travis

This commit is contained in:
Alexander Ivanov 2018-02-26 14:30:29 +02:00
parent 35ed285e47
commit 5b1b3f65cb
2 changed files with 31 additions and 0 deletions

28
.travis.yml Normal file
View File

@ -0,0 +1,28 @@
language: c
env:
- BRANCH=devel
compiler:
- gcc
- clang
before_install:
- |
if [ ! -x nim-$BRANCH/bin/nim ]; then
git clone -b $BRANCH --depth 1 git://github.com/nim-lang/nim nim-$BRANCH/
cd nim-$BRANCH
sh ci/build.sh
./koch tools -d:release
else
cd nim-$BRANCH
git fetch origin
if ! git merge FETCH_HEAD | grep "Already up-to-date"; then
bin/nim c koch
./koch boot -d:release
./koch tools -d:release
fi
fi
export PATH=$PWD/bin:$PATH
cd ..
script:
- nimble install -y
- nimble test

View File

@ -1,2 +1,5 @@
# nim-keccak-tiny
[![Build Status](https://travis-ci.org/status-im/nim-keccak-tiny.svg?branch=master)](https://travis-ci.org/status-im/nim-keccak-tiny)
A wrapper for the keccak-tiny C library