Fix test dependency installation
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
src/build-scripts/common-args.hxml
|
|
||||||
-lib utest
|
-lib utest
|
||||||
-D test
|
-D test
|
||||||
--main test.TestMain
|
--main test.TestMain
|
||||||
@@ -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
|
||||||
@@ -1,2 +1 @@
|
|||||||
src/build-scripts/common-test-args.hxml
|
|
||||||
--interp
|
--interp
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -1,10 +1,15 @@
|
|||||||
#! /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 $?
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
7
test.sh
7
test.sh
@@ -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
|
||||||
Reference in New Issue
Block a user