Tightening the project testing setup
This commit is contained in:
@@ -26,8 +26,13 @@ jobs:
|
|||||||
haxe: stable
|
haxe: stable
|
||||||
# Test experiments in separate job
|
# Test experiments in separate job
|
||||||
- script: KISS_HEADLESS=true ./test-projects.sh
|
- script: KISS_HEADLESS=true ./test-projects.sh
|
||||||
|
os:
|
||||||
|
- mac
|
||||||
|
- linux
|
||||||
|
- windows
|
||||||
haxe: stable
|
haxe: stable
|
||||||
|
env:
|
||||||
|
- KISS_TARGET=projects
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
|
- if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
|
||||||
|
|||||||
5
projects/file-watch/build.hxml
Normal file
5
projects/file-watch/build.hxml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
|
||||||
|
-lib kiss
|
||||||
|
-cp src
|
||||||
|
--main Main
|
||||||
|
--interp
|
||||||
6
projects/file-watch/src/Main.hx
Normal file
6
projects/file-watch/src/Main.hx
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
package;
|
||||||
|
|
||||||
|
import kiss.Kiss;
|
||||||
|
|
||||||
|
@:build(kiss.Kiss.build("src/Main.kiss"))
|
||||||
|
class Main {}
|
||||||
2
projects/file-watch/src/Main.kiss
Normal file
2
projects/file-watch/src/Main.kiss
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
(defun main []
|
||||||
|
(trace "Hello, project testing!"))
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
exit 0
|
haxelib dev kiss ../../
|
||||||
|
haxe build.hxml
|
||||||
@@ -4,11 +4,15 @@ PROJECT_DIRS=projects/**/
|
|||||||
|
|
||||||
for PROJECT_DIR in $PROJECT_DIRS
|
for PROJECT_DIR in $PROJECT_DIRS
|
||||||
do
|
do
|
||||||
|
if [ ! -z "${TRAVIS_OS_NAME}" ]; then
|
||||||
|
(cd $PROJECT_DIR && haxelib install all)
|
||||||
|
fi
|
||||||
|
|
||||||
AUTO_TEST_FILE=${PROJECT_DIR}test.sh
|
AUTO_TEST_FILE=${PROJECT_DIR}test.sh
|
||||||
if [ -e $AUTO_TEST_FILE ]
|
if [ -e $AUTO_TEST_FILE ]
|
||||||
then
|
then
|
||||||
echo $AUTO_TEST_FILE
|
echo $AUTO_TEST_FILE
|
||||||
$AUTO_TEST_FILE
|
(cd $PROJECT_DIR && ./test.sh)
|
||||||
if [ ! $? -eq 0 ]
|
if [ ! $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "failed"
|
echo "failed"
|
||||||
@@ -20,7 +24,7 @@ do
|
|||||||
if [ -z "$KISS_HEADLESS" ] && [ -e $MANUAL_TEST_FILE ]
|
if [ -z "$KISS_HEADLESS" ] && [ -e $MANUAL_TEST_FILE ]
|
||||||
then
|
then
|
||||||
echo $MANUAL_TEST_FILE
|
echo $MANUAL_TEST_FILE
|
||||||
$MANUAL_TEST_FILE
|
(cd $PROJECT_DIR && ./manual-test.sh)
|
||||||
if [ ! $? -eq 0 ]
|
if [ ! $? -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "failed"
|
echo "failed"
|
||||||
|
|||||||
Reference in New Issue
Block a user