From 5b1b3f65cb4c2233c61ccdc78d9d4fea1793998a Mon Sep 17 00:00:00 2001 From: Alexander Ivanov Date: Mon, 26 Feb 2018 14:30:29 +0200 Subject: [PATCH] Add travis --- .travis.yml | 28 ++++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 31 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e79b732 --- /dev/null +++ b/.travis.yml @@ -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 + diff --git a/README.md b/README.md index d2a966e..d59c39c 100644 --- a/README.md +++ b/README.md @@ -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