From 34cbb16c722267484b5085141b7eb0368db33ff7 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Sat, 3 Mar 2018 11:52:53 +0200 Subject: [PATCH] Added travis cfg --- .travis.yml | 8 ++++++++ README.md | 3 ++- eth_bloom.nimble | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..12afc33 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +sudo: required +services: + - docker +before_install: + - docker pull yglukhov/nim-base +script: + - docker run yglukhov/nim-base nim --version + - docker run -v "$(pwd):/project" -w /project yglukhov/nim-base nimble test diff --git a/README.md b/README.md index 076eb99..a1f3fb6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # nim-eth-bloom -Ethereum Bloom Filter +Ethereum Bloom Filter [![Build Status](https://travis-ci.org/status-im/nim-eth-bloom.svg?branch=master)](https://travis-ci.org/status-im/nim-eth-bloom) + ## License diff --git a/eth_bloom.nimble b/eth_bloom.nimble index 692d855..7579396 100644 --- a/eth_bloom.nimble +++ b/eth_bloom.nimble @@ -11,3 +11,6 @@ srcDir = "src" requires "nim >= 0.17.0", "https://github.com/status-im/nim-keccak-tiny.git >= 0.1.0", "https://github.com/status-im/nim-ttmath >= 0.5.0" + +task test, "Run tests": + setCommand "cpp", "tests/test1.nim"