forked from jlawyerorg/j-lawyer-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-fast.sh
executable file
·34 lines (28 loc) · 1004 Bytes
/
build-fast.sh
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
# requires: sudo apt-get install openjfx
# skips tests
function check_error {
if [ $1 -gt 0 ]; then
echo "Found error!"
exit 1
fi
}
# there is an OpenJDK bug on Ubuntu, causing Surefire tests to fail - skip tests for now
mvn -f j-lawyer-cloud/pom.xml install -DskipTests
check_error $?
ant -buildfile j-lawyer-fax/build.xml jar
check_error $?
ant -Dj2ee.server.home=/home/travis -buildfile j-lawyer-server-entities/build.xml dist
check_error $?
ant -buildfile j-lawyer-server-common/build.xml jar
check_error $?
ant -buildfile j-lawyer-server-api/build.xml jar
check_error $?
ant -Dj2ee.server.home=/home/travis -buildfile j-lawyer-server/build.xml dist
check_error $?
ant -buildfile j-lawyer-io-common/build.xml jar
check_error $?
ant -buildfile j-lawyer-client/build.xml jar
check_error $?
# there is an OpenJDK bug on Ubuntu, causing Surefire tests to fail - skip tests for now
mvn -f j-lawyer-backupmgr/pom.xml package -DskipTests -Djava.home=/home/jens/bin/jdk8u265-full/jre