build_and_test 511 Bytes
Newer Older
incardon's avatar
incardon committed
1 2
#! /bin/bash

incardon's avatar
incardon committed
3
echo "Set environment"
incardon's avatar
incardon committed
4

incardon's avatar
incardon committed
5
# Custom script to set environment variables like FIJI path TEST path JAVA_HOME
6
source ~/.bashrc_custom
incardon's avatar
incardon committed
7

incardon's avatar
incardon committed
8 9 10
cd plugin

ant main
11 12 13 14 15 16 17 18 19 20 21 22 23
if [ $? -ne 0 ]
then
        echo "Error compiling"
        exit 1
fi

ant jtest

if [ $? -ne 0 ]
then
	echo "Error in the tests"
	exit 1
fi
incardon's avatar
incardon committed
24

25
cd $FIJI_MOSAIC_PLUGIN_PATH/../..
incardon's avatar
incardon committed
26 27

./ImageJ-linux64 -batch test.ijm "username=incardon"
28 29 30 31 32 33 34 35 36

# check if tmp/test has succeful file

if [ ! -e "/tmp/test/succeful"  ]
then
	echo "Error in the tests"
	exit 1
fi