[test] Run lime build over flixel projects

This commit is contained in:
2021-04-27 17:37:34 -06:00
parent d352bf791f
commit fa5db8233a
5 changed files with 35 additions and 1 deletions

0
kiss/build-scripts/cpp/test-cpp.sh Normal file → Executable file
View File

0
kiss/build-scripts/py/test-py.sh Normal file → Executable file
View File

View File

@@ -1,4 +1,18 @@
#! /bin/bash
haxelib dev asciilib .
(cd test && haxe build.hxml)
# Run the headless unit tests:
echo "Running headless ASCIILib tests"
(cd test && haxe build.hxml)
# Make sure the examples with backends compile, at least:
EXAMPLE_DIRS=examples/**/
for EXAMPLE_DIR in $EXAMPLE_DIRS
do
echo "Building $EXAMPLE_DIR for html5"
(cd $EXAMPLE_DIR && lime build html5)
echo "Building $EXAMPLE_DIR for cpp"
(cd $EXAMPLE_DIR && lime build cpp)
done

12
projects/flixel/test.sh Executable file
View File

@@ -0,0 +1,12 @@
#! /bin/bash
# Make sure the examples with backends compile, at least:
EXAMPLE_DIRS=./**/
for EXAMPLE_DIR in $EXAMPLE_DIRS
do
echo "Building $EXAMPLE_DIR for html5"
(cd $EXAMPLE_DIR && lime build html5)
echo "Building $EXAMPLE_DIR for cpp"
(cd $EXAMPLE_DIR && lime build cpp)
done

View File

@@ -3,7 +3,15 @@
PROJECT_DIRS=projects/**/
if [ ! -z "${TRAVIS_OS_NAME}" ]; then
# Install basic dependencies for Kiss testing
(cd kiss/build-scripts && haxelib install all --always)
# Install HaxeFlixel because many Kiss projects use it
haxelib install lime
haxelib install openfl
haxelib install flixel
haxelib run lime setup flixel
haxelib run lime setup
fi
for PROJECT_DIR in $PROJECT_DIRS