mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-13 20:17:07 +00:00
Added ojunit as a submodule
This commit is contained in:
1 parent
50ed22c63c
commit
5b95ff5ff3
7 files changed
+20
-90
No files matched your search
@@ -0,0 +1,3 @@
|
||||
[submodule "Tools/ojunit"]
|
||||
path = Tools/ojunit
|
||||
url = git://github.com/280north/ojunit.git
|
||||
@@ -16,6 +16,9 @@ end
|
||||
$DEBUG_ENV = File.join($BUILD_DIR, 'Debug', 'env')
|
||||
$RELEASE_ENV = File.join($BUILD_DIR, 'Release', 'env')
|
||||
|
||||
$DOXYGEN_CONFIG = File.join('Tools', 'Documentation', 'Cappuccino.doxygen')
|
||||
$DOCUMENTATION_BUILD = File.join($BUILD_DIR, 'Documentation')
|
||||
|
||||
$TOOLS_README = File.join('Tools', 'READMEs', 'TOOLS-README')
|
||||
$TOOLS_EDITORS = File.join('Tools', 'Editors')
|
||||
$TOOLS_INSTALLER = File.join('Tools', 'Install', 'install-tools')
|
||||
@@ -71,16 +74,19 @@ task :install => [:downloads] do
|
||||
system %{cd #{$TOOLS_DOWNLOAD} && sudo sh ./install-tools }
|
||||
end
|
||||
|
||||
=begin
|
||||
TODO: ojunit stuff:
|
||||
task :test => [:build] do
|
||||
tests = "'" + FileList['Tests/**/*.j'].join("' '") + "'"
|
||||
system %{ojtest #{tests} }
|
||||
end
|
||||
|
||||
<git-clone-pull repository = "git://github.com/280north/ojunit.git" dest = "${Build}/Release/ojunit" />
|
||||
|
||||
<copy todir = "${Build.Cappuccino.Tools.Lib}/ojunit">
|
||||
<fileset dir = "${Build}/Release/ojunit" includes = "**/*.j" />
|
||||
</copy>
|
||||
|
||||
<copy file = "Tools/ojunit/ojtest" tofile = "${Build.Cappuccino.Tools.Bin}/ojtest" />
|
||||
task :docs do
|
||||
system %{doxygen #{$DOXYGEN_CONFIG} }
|
||||
rm_rf $DOCUMENTATION_BUILD
|
||||
mv "Documentation", $DOCUMENTATION_BUILD
|
||||
rm "debug.txt"
|
||||
end
|
||||
|
||||
=begin
|
||||
|
||||
TODO: documentation
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ require 'rake'
|
||||
require '../common'
|
||||
|
||||
|
||||
subprojects = %w{bake capp nib2cib press}
|
||||
subprojects = %w{bake capp nib2cib press ojunit}
|
||||
|
||||
%w(build clean clobber).each do |task_name|
|
||||
task task_name do
|
||||
|
||||
Submodule
+1
Submodule Tools/ojunit added at bcd28cfebe.
@@ -1,7 +0,0 @@
|
||||
OJUnit resides in a separate repository. This build.xml pulls it from that repo:
|
||||
|
||||
git://github.com/280north/ojunit.git
|
||||
|
||||
Project page:
|
||||
|
||||
http://github.com/280north/ojunit
|
||||
@@ -1,37 +0,0 @@
|
||||
<?xml version = "1.0"?>
|
||||
<project name = "ojunit" default = "build" basedir = "." >
|
||||
|
||||
<import file = "../../common.xml" />
|
||||
|
||||
<property name = "Build.Products" location = "${Build}/ojunit.build/${Configuration}" />
|
||||
<property name = "Build.ojunit" location = "${Build}/${Configuration}/ojunit" />
|
||||
|
||||
<target name = "clean">
|
||||
<delete dir = "${Build.ojunit}" verbose = "true" />
|
||||
<delete dir = "${Build.Products}" verbose = "true" />
|
||||
</target>
|
||||
|
||||
<target name = "build">
|
||||
</target>
|
||||
|
||||
<target name = "release" depends = "build">
|
||||
|
||||
<antcall target = "prepare-release" />
|
||||
|
||||
<git-clone-pull repository="git://github.com/280north/ojunit.git" dest="${Build.ojunit}" />
|
||||
|
||||
<mkdir dir = "${Build.Cappuccino.Tools.Lib}/ojunit" />
|
||||
<copy todir = "${Build.Cappuccino.Tools.Lib}/ojunit">
|
||||
<fileset dir = "${Build.ojunit}" includes = "**/*.j" />
|
||||
</copy>
|
||||
|
||||
<!-- remove following line if/when we move the shell script to the ojunit repo -->
|
||||
<copy file = "${basedir}/ojtest" tofile = "${Build.ojunit}/ojtest" />
|
||||
|
||||
<copy file = "${Build.ojunit}/ojtest" tofile = "${Build.Cappuccino.Tools.Bin}/ojtest" />
|
||||
|
||||
<chmod file = "${Build.Cappuccino.Tools.Bin}/ojtest" perm = "+x" />
|
||||
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@@ -1,36 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# if OBJJ_HOME isn't set, try to determine it
|
||||
if [ -z $OBJJ_HOME ]; then
|
||||
# get path of the executable
|
||||
SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH=$SELF_PATH/$(basename -- "$0")
|
||||
|
||||
# resolve symlinks
|
||||
if [ -h $SELF_PATH ]; then
|
||||
SELF_PATH=`readlink $SELF_PATH`
|
||||
fi
|
||||
|
||||
# get second ancestor directory
|
||||
SELF_DIR=`dirname $SELF_PATH`
|
||||
export OBJJ_HOME=`dirname $SELF_DIR`
|
||||
|
||||
# check to ensure it exists, print message
|
||||
if [ -d $OBJJ_HOME ]; then
|
||||
echo "OBJJ_HOME not set, defaulting to $OBJJ_HOME" 1>&2
|
||||
else
|
||||
echo "OBJJ_HOME not set, default at $OBJJ_HOME doesn't exist, exiting" 1>&2
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
|
||||
OBJJ_LIB="$OBJJ_HOME/lib"
|
||||
|
||||
OJTEST="$OBJJ_LIB/ojunit/OJTestRunnerText.j"
|
||||
|
||||
# convert paths for Cygwin
|
||||
if [[ `uname` == CYGWIN* ]]; then
|
||||
OBJJ_HOME=`cygpath -w "$OBJJ_HOME"`
|
||||
OJTEST=`cygpath -w "$OJTEST"`
|
||||
fi
|
||||
|
||||
objj $OJTEST $@
|
||||
Reference in new issue
Block a user