-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·33 lines (28 loc) · 942 Bytes
/
build.sh
File metadata and controls
executable file
·33 lines (28 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
CISHELL_APPS=$(dirname $0)
CISHELL_CORE="${CISHELL_APPS}/../CIShell"
CISHELL_PLUGINS="${CISHELL_APPS}/../cishell-plugins"
if [ "$1" != "" ]; then
CISHELL_CORE=$1
else
echo "The default build script assumes CIShell, cishell-plugins, and cishell-apps are all in the same directory."
fi
if [ "$2" != "" ]; then
CISHELL_PLUGINS=$2
fi
for repo in "${CISHELL_CORE} ${CISHELL_PLUGINS} ${CISHELL_APPS}"; do
pushd $repo
mvn -Pbuild-nonpde clean install
mvn -o clean install
popd
done
pushd $CISHELL_APPS
# NWB and Epic have not been converted as of Dec 2017.
mkdir -p dist/sci2
ant -f sci2/deployment/edu.iu.sci2.releng/postMavenTasks.xml build deploy
ant -f sci2/deployment/edu.iu.sci2.p2/p2-ant-tasks.xml deploy-dev-p2
# Copy built diles to dist/sci2
cp -r sci2/deployment/edu.iu.sci2.p2/build/test/sci2/p2 dist/sci2/
cp -r sci2/deployment/edu.iu.sci2.releng/build/test/sci2/* dist/sci2/
popd