try haxelib install all for travis test dependencies
This commit is contained in:
0
src/build-scripts/test/cpp.sh → src/build-scripts/cpp/test-cpp.sh
Executable file → Normal file
0
src/build-scripts/test/cpp.sh → src/build-scripts/cpp/test-cpp.sh
Executable file → Normal file
@@ -1,3 +1,4 @@
|
|||||||
src/build-scripts/common-test-args.hxml
|
src/build-scripts/common-test-args.hxml
|
||||||
|
-lib hxcpp
|
||||||
-cpp bin/cpp/test
|
-cpp bin/cpp/test
|
||||||
-cmd bash src/build-scripts/test/cpp.sh
|
-cmd bash src/build-scripts/cpp/test-cpp.sh
|
||||||
0
src/build-scripts/test/py.sh → src/build-scripts/py/test-py.sh
Executable file → Normal file
0
src/build-scripts/test/py.sh → src/build-scripts/py/test-py.sh
Executable file → Normal file
@@ -1,3 +1,3 @@
|
|||||||
src/build-scripts/common-test-args.hxml
|
src/build-scripts/common-test-args.hxml
|
||||||
--python bin/py/test.py
|
--python bin/py/test.py
|
||||||
--cmd bash src/build-scripts/test/py.sh
|
--cmd bash src/build-scripts/py/test-py.sh
|
||||||
@@ -1,11 +1,14 @@
|
|||||||
// (defvar) declares static variables
|
// (defvar) declares static variables
|
||||||
(defvar message "Howdy")
|
(defvar message "Howdy")
|
||||||
|
|
||||||
// #| ... |# parses and injects raw Haxe code
|
// #| ... |# parses and injects raw Haxe code
|
||||||
(defvar mathResult #|5 + 6 * 3|#) // Order of operations will apply
|
(defvar mathResult #|5 + 6 * 3|#) // Order of operations will apply
|
||||||
|
|
||||||
// (defun) declares static functions
|
// (defun) declares static functions
|
||||||
(defun myFloor [num]
|
(defun myFloor [num]
|
||||||
// funcalls can use dot access
|
// funcalls can use dot access
|
||||||
(Math.floor num))
|
(Math.floor num))
|
||||||
|
|
||||||
// functions are resolved in the macro context
|
// functions are resolved in the macro context
|
||||||
(defvar funResult (myFloor 7.5))
|
(defvar funResult (myFloor 7.5))
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
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
|
haxe $TEST_FILE
|
||||||
|
|||||||
15
test.sh
15
test.sh
@@ -1,11 +1,12 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
if [ ! -z "$TRAVIS_OS_NAME" ]
|
|
||||||
then
|
|
||||||
haxelib install utest
|
|
||||||
haxelib install hxnodejs
|
|
||||||
fi
|
|
||||||
|
|
||||||
HISS_TARGET=${HISS_TARGET:-$1}
|
HISS_TARGET=${HISS_TARGET:-$1}
|
||||||
HISS_TARGET=${HISS_TARGET:-interp}
|
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
|
||||||
Reference in New Issue
Block a user