From 48eff0bbb22c0f6e4483f6a296d9e640664acefe Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Fri, 3 Nov 2017 14:16:04 +0200 Subject: [PATCH] Added travis --- .travis.yml | 8 ++++++++ nimPNG.nimble | 13 +++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0555ae3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +sudo: required +services: + - docker +before_install: + - docker pull yglukhov/nim-base +script: + - docker run -v "$(pwd):/project" -w /project yglukhov/nim-base nim --version + - docker run -v "$(pwd):/project" -w /project yglukhov/nim-base nimble tests diff --git a/nimPNG.nimble b/nimPNG.nimble index 7469e36..523b419 100644 --- a/nimPNG.nimble +++ b/nimPNG.nimble @@ -1,9 +1,14 @@ -[Package] -name = "nimPNG" +# Package version = "0.1.8" author = "Andri Lim" description = "PNG encoder and decoder" license = "MIT" -[Deps] -Requires: "nim >= 0.11.2" \ No newline at end of file +# Deps +requires "nim >= 0.11.2" + +task tests, "Run tests": + withDir("tester"): + exec "nim c -r test.nim" + exec "nim c -r testCodec.nim" + exec "nim c -r testSuite.nim"