From c1c3c4c5d1694af27227915884bbfad6ed78fddb Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Sun, 3 Apr 2016 13:07:47 +0100 Subject: [PATCH 1/2] Add nimscript test and run it in Travis CI --- .travis.yml | 1 + tests/test_nimscript.nims | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 tests/test_nimscript.nims diff --git a/.travis.yml b/.travis.yml index f68375e939..f8655f9404 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,7 @@ script: - ./koch boot - ./koch boot -d:release - nim e install_nimble.nims + - nim e tests/test_nimscript.nims - nimble update - nimble install zip - nimble install opengl diff --git a/tests/test_nimscript.nims b/tests/test_nimscript.nims new file mode 100755 index 0000000000..434254f9ab --- /dev/null +++ b/tests/test_nimscript.nims @@ -0,0 +1,25 @@ +# This nimscript is used to test if the following modules can be imported +# http://nim-lang.org/docs/nims.html + +import algorithm +import base64 +import colors +import hashes +import lists +import math +# import marshal +import options +import ospaths +# import parsecfg +# import parseopt +import parseutils +import pegs +import queues +import sequtils +import strutils +import subexes +import tables +import unicode +import uri + +echo "Nimscript imports are successful." From 497925ab6dc1d5a94480b102e9e382ef8758ace7 Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Mon, 11 Apr 2016 18:00:53 +0100 Subject: [PATCH 2/2] Disable pegs --- tests/test_nimscript.nims | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_nimscript.nims b/tests/test_nimscript.nims index 434254f9ab..436e990ef7 100755 --- a/tests/test_nimscript.nims +++ b/tests/test_nimscript.nims @@ -13,7 +13,7 @@ import ospaths # import parsecfg # import parseopt import parseutils -import pegs +# import pegs import queues import sequtils import strutils