Merge pull request #15 from yglukhov/travis

Added travis
This commit is contained in:
andri lim 2017-11-04 16:24:43 +07:00 committed by GitHub
commit bab1ee377a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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]
name = "nimPNG"
# Package
version = "0.1.8"
author = "Andri Lim"
description = "PNG encoder and decoder"
license = "MIT"
[Deps]
Requires: "nim >= 0.11.2"
# 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"