forked from apache/cassandra-java-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
executable file
·36 lines (29 loc) · 804 Bytes
/
build
File metadata and controls
executable file
·36 lines (29 loc) · 804 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
34
35
36
#!/bin/sh
SCRIPT_DIR=$( cd "$( dirname "$0" )" && pwd )
CURRENT_DIR=$( pwd )
LOG_FILE="$CURRENT_DIR/stress_build.log"
[ -f $LOG_FILE ] && rm $LOG_FILE
echo "Building java driver ..."
echo "-- Driver build --\n" > $LOG_FILE
cd $SCRIPT_DIR/../../..
mvn clean install -Dmaven.test.skip=true >> $LOG_FILE 2>&1
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ];
then
echo "Error building driver. See $LOG_FILE for details." 1>&2
cd $CURRENT_DIR
exit $EXIT_CODE
fi
echo "Building stress application ..."
echo "\n-- Stress build --\n" >> $LOG_FILE
cd $SCRIPT_DIR/..
mvn package assembly:single >> $LOG_FILE 2>&1
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ];
then
echo "Error building stress application. See $LOG_FILE for details." 1>&2
cd $CURRENT_DIR
exit $EXIT_CODE
fi
cd $CURRENT_DIR
rm $LOG_FILE