Fix test dependency installation

This commit is contained in:
2020-11-13 19:10:05 -07:00
parent 014893271e
commit 4d6a823066
9 changed files with 13 additions and 13 deletions

View File

@@ -1,4 +1,3 @@
src/build-scripts/common-args.hxml
-lib utest -lib utest
-D test -D test
--main test.TestMain --main test.TestMain

View File

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

View File

@@ -1,2 +1 @@
src/build-scripts/common-test-args.hxml
--interp --interp

View File

@@ -1,3 +1,2 @@
src/build-scripts/common-test-args.hxml
--js bin/js/test.js --js bin/js/test.js
--cmd node bin/js/test.js --cmd node bin/js/test.js

View File

@@ -1,4 +1,3 @@
src/build-scripts/common-test-args.hxml
-lib hxnodejs -lib hxnodejs
--js bin/nodejs/test.js --js bin/nodejs/test.js
--cmd node bin/nodejs/test.js --cmd node bin/nodejs/test.js

View File

@@ -1,7 +1,7 @@
#! /bin/bash #! /bin/bash
# Travis testing on Xenial # "python" is supposed to mean Python3 everywhere now, but not in practice
if [ "$(uname)" = "Linux" ]; then if [ ! -z "$(which python3)" ]; then
python3 bin/py/test.py python3 bin/py/test.py
else else
python bin/py/test.py python bin/py/test.py

View File

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

View File

@@ -1,8 +1,13 @@
#! /bin/bash #! /bin/bash
# For local testing. Dependencies won't be installed
TEST_FILES=src/build-scripts/**/test.hxml TEST_FILES=src/build-scripts/**/test.hxml
for TEST_FILE in $TEST_FILES for TEST_FILE in $TEST_FILES
do do
haxe $TEST_FILE echo $TEST_FILE
haxe src/build-scripts/common-args.hxml src/build-scripts/common-test-args.hxml $TEST_FILE
if [ ! $? -eq 0 ] if [ ! $? -eq 0 ]
then then
exit $? exit $?

View File

@@ -3,10 +3,11 @@
HISS_TARGET=${HISS_TARGET:-$1} HISS_TARGET=${HISS_TARGET:-$1}
HISS_TARGET=${HISS_TARGET:-interp} HISS_TARGET=${HISS_TARGET:-interp}
# For CI tests, force install the dependencies
if [ ! -z "$TRAVIS_OS_NAME" ] if [ ! -z "$TRAVIS_OS_NAME" ]
then then
(cd src/build-scripts && haxelib install all) (cd src/build-scripts && haxelib install all --always)
(cd src/build-scripts/$HISS_TARGET && haxelib install all) (cd src/build-scripts/$HISS_TARGET && haxelib install all --always)
fi fi
haxe src/build-scripts/$HISS_TARGET/test.hxml haxe src/build-scripts/common-args.hxml src/build-scripts/common-test-args.hxml src/build-scripts/$HISS_TARGET/test.hxml