try haxelib install all for travis test dependencies

This commit is contained in:
2020-11-13 15:07:37 -07:00
parent 60a4b10ca7
commit bc37381a47
10 changed files with 15 additions and 10 deletions

View File

View File

@@ -1,3 +1,4 @@
src/build-scripts/common-test-args.hxml
-lib hxcpp
-cpp bin/cpp/test
-cmd bash src/build-scripts/test/cpp.sh
-cmd bash src/build-scripts/cpp/test-cpp.sh

View File

View File

@@ -1,3 +1,3 @@
src/build-scripts/common-test-args.hxml
--python bin/py/test.py
--cmd bash src/build-scripts/test/py.sh
--cmd bash src/build-scripts/py/test-py.sh

View File

@@ -1,11 +1,14 @@
// (defvar) declares static variables
(defvar message "Howdy")
// #| ... |# parses and injects raw Haxe code
(defvar mathResult #|5 + 6 * 3|#) // Order of operations will apply
// (defun) declares static functions
(defun myFloor [num]
// funcalls can use dot access
(Math.floor num))
// functions are resolved in the macro context
(defvar funResult (myFloor 7.5))

View File

@@ -1,5 +1,5 @@
#! /bin/bash
TEST_FILES=src/build-scripts/test/*.hxml
TEST_FILES=src/build-scripts/**/test.hxml
for TEST_FILE in $TEST_FILES
do
haxe $TEST_FILE

15
test.sh
View File

@@ -1,11 +1,12 @@
#! /bin/bash
if [ ! -z "$TRAVIS_OS_NAME" ]
then
haxelib install utest
haxelib install hxnodejs
fi
HISS_TARGET=${HISS_TARGET:-$1}
HISS_TARGET=${HISS_TARGET:-interp}
haxe src/build-scripts/test/$HISS_TARGET.hxml
if [ ! -z "$TRAVIS_OS_NAME" ]
then
(cd src/build-scripts && haxelib install all)
(cd src/build-scripts/$HISS_TARGET && haxelib install all)
fi
haxe src/build-scripts/$HISS_TARGET/test.hxml