27 lines
751 B
Bash
Executable File
27 lines
751 B
Bash
Executable File
#! /bin/bash
|
|
|
|
KISS_TARGET=${KISS_TARGET:-$1}
|
|
KISS_TARGET=${KISS_TARGET:-interp}
|
|
|
|
if [ -n "$CI_OS_NAME" ]; then
|
|
FLAGS="-D kissCache" # for testing AsyncEmbeddedScript
|
|
lix download
|
|
fi
|
|
|
|
if [ "$KISS_TARGET" = cpp ]; then
|
|
lix install haxelib:hxcpp
|
|
elif [ "$KISS_TARGET" = cs ]; then
|
|
lix install haxelib:hxcs
|
|
elif [ "$KISS_TARGET" = nodejs ]; then
|
|
lix install haxelib:hxnodejs
|
|
fi
|
|
|
|
if [ -e AsyncDSLScript.cache.json ]; then
|
|
rm AsyncDSLScript*.json
|
|
fi
|
|
|
|
if [ ! -z "$2" ]; then
|
|
haxe $FLAGS -D cases=$2 build-scripts/common-args.hxml build-scripts/common-test-args.hxml build-scripts/$KISS_TARGET/test.hxml
|
|
else
|
|
haxe $FLAGS build-scripts/common-args.hxml build-scripts/common-test-args.hxml build-scripts/$KISS_TARGET/test.hxml
|
|
fi |