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"