23 lines
614 B
Bash
Executable File
23 lines
614 B
Bash
Executable File
#! /bin/bash
|
|
|
|
KISS_TARGET=${KISS_TARGET:-$1}
|
|
KISS_TARGET=${KISS_TARGET:-interp}
|
|
|
|
./test-env.sh
|
|
|
|
# If Travis is running tests, basic dependencies need to be installed
|
|
if [ ! -z "$CI_OS_NAME" ]
|
|
then
|
|
(cd kiss/build-scripts && haxelib install all --always)
|
|
(cd kiss/build-scripts/$KISS_TARGET && haxelib install all --always)
|
|
fi
|
|
|
|
# Test projects with test-project.sh
|
|
if [ ! -z "$KISS_PROJECT" ]
|
|
then
|
|
./test-project.sh
|
|
# Test Kiss with utest cases in kiss/src/test/cases
|
|
else
|
|
haxe kiss/build-scripts/common-args.hxml kiss/build-scripts/common-test-args.hxml kiss/build-scripts/$KISS_TARGET/test.hxml
|
|
fi
|