more DRY haxelib dev of projects for testing
This commit is contained in:
0
kiss/build-scripts/cs/test-cs.sh
Normal file → Executable file
0
kiss/build-scripts/cs/test-cs.sh
Normal file → Executable file
0
projects/asciilib/test.sh
Normal file → Executable file
0
projects/asciilib/test.sh
Normal file → Executable file
0
projects/requests-externs/test.sh
Normal file → Executable file
0
projects/requests-externs/test.sh
Normal file → Executable file
14
test-env.sh
Normal file
14
test-env.sh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
haxelib dev kiss kiss
|
||||||
|
|
||||||
|
# Every project with a haxelib.json should be made available to every other project/unit test
|
||||||
|
projects=$(ls projects)
|
||||||
|
for project in $projects
|
||||||
|
do
|
||||||
|
if [ -e projects/${project}/haxelib.json ]
|
||||||
|
then
|
||||||
|
haxelib dev $project projects/$project
|
||||||
|
# the word project has lost all meaning at this point
|
||||||
|
fi
|
||||||
|
done
|
||||||
@@ -3,24 +3,12 @@
|
|||||||
KISS_PROJECT=${KISS_PROJECT:-$1}
|
KISS_PROJECT=${KISS_PROJECT:-$1}
|
||||||
KISS_PROJECT=${KISS_PROJECT:-aoc}
|
KISS_PROJECT=${KISS_PROJECT:-aoc}
|
||||||
|
|
||||||
haxelib dev kiss kiss
|
./test-env.sh
|
||||||
|
|
||||||
# If project folder contains "nat-", set development directory for nat-archive-tool
|
|
||||||
if [[ $KISS_PROJECT == *nat-* ]]
|
|
||||||
then
|
|
||||||
haxelib dev nat-archive-tool projects/nat-archive-tool
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If project folder contains "ascii-", set development directory for asciilib2
|
|
||||||
if [[ $KISS_PROJECT == *ascii-* ]]
|
|
||||||
then
|
|
||||||
haxelib dev asciilib projects/asciilib2
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If project folder contains "flixel-", test that its code compiles for HTML5 and C++
|
# If project folder contains "flixel-", test that its code compiles for HTML5 and C++
|
||||||
if [[ $KISS_PROJECT == *flixel-* ]]
|
if [[ $KISS_PROJECT == *flixel-* ]]
|
||||||
then
|
then
|
||||||
# If running through Travis, install HaxeFlixel with c++ tooling and
|
# If running through Travis, install HaxeFlixel with c++ tooling
|
||||||
if [ ! -z "CI_OS_NAME" ]
|
if [ ! -z "CI_OS_NAME" ]
|
||||||
then
|
then
|
||||||
haxelib install lime
|
haxelib install lime
|
||||||
|
|||||||
2
test.sh
2
test.sh
@@ -3,7 +3,7 @@
|
|||||||
KISS_TARGET=${KISS_TARGET:-$1}
|
KISS_TARGET=${KISS_TARGET:-$1}
|
||||||
KISS_TARGET=${KISS_TARGET:-interp}
|
KISS_TARGET=${KISS_TARGET:-interp}
|
||||||
|
|
||||||
haxelib dev kiss kiss
|
./test-env.sh
|
||||||
|
|
||||||
# If Travis is running tests, basic dependencies need to be installed
|
# If Travis is running tests, basic dependencies need to be installed
|
||||||
if [ ! -z "$CI_OS_NAME" ]
|
if [ ! -z "$CI_OS_NAME" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user