Refactor travis testing

This commit is contained in:
2021-06-07 12:36:22 -06:00
parent 32698b2d5b
commit 610a977b7c
77 changed files with 76 additions and 116 deletions

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 984 B

After

Width:  |  Height:  |  Size: 984 B

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -1,3 +0,0 @@
# HaxeFlixel Projects
Various examples of how to combine Kiss with HaxeFlixel

View File

@@ -1,12 +0,0 @@
#! /bin/bash
# Make sure the examples with backends compile, at least:
EXAMPLE_DIRS=./**/
for EXAMPLE_DIR in $EXAMPLE_DIRS
do
echo "Building $EXAMPLE_DIR for html5"
(cd $EXAMPLE_DIR && haxelib run lime build html5)
echo "Building $EXAMPLE_DIR for cpp"
(cd $EXAMPLE_DIR && haxelib run lime build cpp)
done

View File

@@ -1,4 +0,0 @@
#! /bin/bash
haxelib dev nap .
haxe test.hxml

View File

@@ -1,5 +1,5 @@
{
"name": "nap",
"name": "nat-archive-tool",
"url": "https://github.com/hissvn/kisslang",
"license": "LGPL",
"tags": ["cross"],

View File

@@ -1,4 +1,4 @@
package nap;
package nat;
import sys.FileSystem;
import kiss.Prelude;

View File

@@ -1,4 +1,4 @@
package nap;
package nat;
import kiss.KissInterp;
import hscript.Parser;

View File

@@ -1,4 +1,4 @@
package nap;
package nat;
typedef Entry = {
id:String,

View File

@@ -1,4 +1,4 @@
package nap;
package nat;
import kiss.Prelude;
import sys.io.File;

View File

@@ -6,10 +6,10 @@
// TODO add to the documentation a hint that macros should use fully qualified paths so macro caller classes don't need to import everything
(defmacro getComponent [archive e componentType]
`(the nap.components ,componentType
`(the nat.components ,componentType
(tink.Json.parse
(sys.io.File.getContent
(haxe.io.Path.join [.archiveDir (the nap.Archive ,archive) "components" (+ (dictGet (the Map<String,String> .components ,e) ,(symbolName componentType)) ".json")])))))
(haxe.io.Path.join [.archiveDir (the nat.Archive ,archive) "components" (+ (dictGet (the Map<String,String> .components ,e) ,(symbolName componentType)) ".json")])))))
(defun tagList [archive e]
(let [t

View File

@@ -1,4 +1,4 @@
package nap;
package nat;
import kiss.Prelude;

View File

@@ -1,4 +1,4 @@
package nap;
package nat;
interface Template {
function prepareEntry(e:Entry):Void;

View File

@@ -1,3 +1,3 @@
package nap.components;
package nat.components;
typedef Tags = Map<String, Date>;

View File

@@ -1,4 +1,4 @@
package nap.components;
package nat.components;
typedef Name = String;
typedef Author = String;

View File

@@ -1,3 +1,3 @@
package nap.components;
package nat.components;
typedef Tags = Map<String, Int>;

View File

@@ -1,4 +1,4 @@
package nap.systems;
package nat.systems;
import kiss.Prelude;

View File

@@ -2,10 +2,10 @@ package test;
import kiss.Kiss;
import kiss.Prelude;
import nap.BoolExpInterp;
import nap.Archive;
import nap.Lib;
import nap.components.*;
import nat.BoolExpInterp;
import nat.Archive;
import nat.Lib;
import nat.components.*;
@:build(kiss.Kiss.build())
class TestMain {}

View File

@@ -1,7 +1,7 @@
// TODO external programs need to be able to find and (load) this path to get the macros:
// ^ That should be solved by allowing an optional first argument to load that is a symbol
// of a library name that can be used to resolve the source dir in the user's Haxelib maybe?
(load "../nap/Lib.kiss")
(load "../nat/Lib.kiss")
(defun :Void main []

View File

@@ -1,6 +1,6 @@
-D test
-lib kiss
-lib nap
-lib nat-archive-tool
-cp test
--main test.TestMain
--interp

View File

@@ -0,0 +1,4 @@
#! /bin/bash
haxelib dev nat-archive-tool .
haxe test.hxml

View File

@@ -1,5 +1,5 @@
-lib kiss
-lib nap
-lib nat-archive-tool
-cp src
--main Main
--interp

View File

@@ -2,7 +2,7 @@ package;
import kiss.Kiss;
import kiss.Prelude;
import nap.Archive;
import nat.Archive;
@:build(kiss.Kiss.build())
class Main {}