Fix test dependency installation
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
src/build-scripts/common-args.hxml
|
||||
-lib utest
|
||||
-D test
|
||||
--main test.TestMain
|
@@ -1,4 +1,3 @@
|
||||
src/build-scripts/common-test-args.hxml
|
||||
-lib hxcpp
|
||||
-cpp bin/cpp/test
|
||||
-cmd bash src/build-scripts/cpp/test-cpp.sh
|
@@ -1,2 +1 @@
|
||||
src/build-scripts/common-test-args.hxml
|
||||
--interp
|
@@ -1,3 +1,2 @@
|
||||
src/build-scripts/common-test-args.hxml
|
||||
--js bin/js/test.js
|
||||
--cmd node bin/js/test.js
|
@@ -1,4 +1,3 @@
|
||||
src/build-scripts/common-test-args.hxml
|
||||
-lib hxnodejs
|
||||
--js bin/nodejs/test.js
|
||||
--cmd node bin/nodejs/test.js
|
@@ -1,7 +1,7 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Travis testing on Xenial
|
||||
if [ "$(uname)" = "Linux" ]; then
|
||||
# "python" is supposed to mean Python3 everywhere now, but not in practice
|
||||
if [ ! -z "$(which python3)" ]; then
|
||||
python3 bin/py/test.py
|
||||
else
|
||||
python bin/py/test.py
|
||||
|
@@ -1,3 +1,2 @@
|
||||
src/build-scripts/common-test-args.hxml
|
||||
--python bin/py/test.py
|
||||
--cmd bash src/build-scripts/py/test-py.sh
|
@@ -1,10 +1,15 @@
|
||||
#! /bin/bash
|
||||
|
||||
# For local testing. Dependencies won't be installed
|
||||
|
||||
TEST_FILES=src/build-scripts/**/test.hxml
|
||||
|
||||
for TEST_FILE in $TEST_FILES
|
||||
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 ]
|
||||
then
|
||||
exit $?
|
||||
fi
|
||||
done
|
||||
done
|
7
test.sh
7
test.sh
@@ -3,10 +3,11 @@
|
||||
HISS_TARGET=${HISS_TARGET:-$1}
|
||||
HISS_TARGET=${HISS_TARGET:-interp}
|
||||
|
||||
# For CI tests, force install the dependencies
|
||||
if [ ! -z "$TRAVIS_OS_NAME" ]
|
||||
then
|
||||
(cd src/build-scripts && haxelib install all)
|
||||
(cd src/build-scripts/$HISS_TARGET && haxelib install all)
|
||||
(cd src/build-scripts && haxelib install all --always)
|
||||
(cd src/build-scripts/$HISS_TARGET && haxelib install all --always)
|
||||
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
|
Reference in New Issue
Block a user