Fix project testing for Travis
This commit is contained in:
10
.travis.yml
10
.travis.yml
@@ -13,6 +13,7 @@ env:
|
|||||||
- KISS_TARGET=js
|
- KISS_TARGET=js
|
||||||
- KISS_TARGET=nodejs
|
- KISS_TARGET=nodejs
|
||||||
- KISS_TARGET=py
|
- KISS_TARGET=py
|
||||||
|
- KISS_TARGET=projects
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Allow Haxe development to fail.
|
# Allow Haxe development to fail.
|
||||||
@@ -24,15 +25,6 @@ jobs:
|
|||||||
- script: haxelib install formatter && haxelib run formatter --check -s .
|
- script: haxelib install formatter && haxelib run formatter --check -s .
|
||||||
os: linux
|
os: linux
|
||||||
haxe: stable
|
haxe: stable
|
||||||
# Test experiments in separate job
|
|
||||||
- script: KISS_HEADLESS=true ./test-projects.sh
|
|
||||||
os:
|
|
||||||
- mac
|
|
||||||
- linux
|
|
||||||
- windows
|
|
||||||
haxe: stable
|
|
||||||
env:
|
|
||||||
- KISS_TARGET=projects
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
|
- if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
|
||||||
|
|||||||
13
test.sh
13
test.sh
@@ -3,11 +3,16 @@
|
|||||||
KISS_TARGET=${KISS_TARGET:-$1}
|
KISS_TARGET=${KISS_TARGET:-$1}
|
||||||
KISS_TARGET=${KISS_TARGET:-interp}
|
KISS_TARGET=${KISS_TARGET:-interp}
|
||||||
|
|
||||||
# For CI tests, force install the dependencies
|
if [ "$KISS_TARGET" = "projects" ]
|
||||||
if [ ! -z "$TRAVIS_OS_NAME" ]
|
|
||||||
then
|
then
|
||||||
|
KISS_HEADLESS="$TRAVIS_OS_NAME" ./test-projects.sh
|
||||||
|
else
|
||||||
|
# For CI tests, force install the dependencies
|
||||||
|
if [ ! -z "$TRAVIS_OS_NAME" ]
|
||||||
|
then
|
||||||
(cd src/build-scripts && haxelib install all --always)
|
(cd src/build-scripts && haxelib install all --always)
|
||||||
(cd src/build-scripts/$KISS_TARGET && haxelib install all --always)
|
(cd src/build-scripts/$KISS_TARGET && haxelib install all --always)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
haxe src/build-scripts/common-args.hxml src/build-scripts/common-test-args.hxml src/build-scripts/$KISS_TARGET/test.hxml
|
haxe src/build-scripts/common-args.hxml src/build-scripts/common-test-args.hxml src/build-scripts/$KISS_TARGET/test.hxml
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user