Added travis

This commit is contained in:
Yuriy Glukhov 2017-11-03 14:16:04 +02:00
parent 22b4278e75
commit 48eff0bbb2
2 changed files with 17 additions and 4 deletions

8
.travis.yml Normal file
View File

@ -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

View File

@ -1,9 +1,14 @@
[Package] # Package
name = "nimPNG"
version = "0.1.8" version = "0.1.8"
author = "Andri Lim" author = "Andri Lim"
description = "PNG encoder and decoder" description = "PNG encoder and decoder"
license = "MIT" license = "MIT"
[Deps] # Deps
Requires: "nim >= 0.11.2" 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"