Skip to content

Commit 08d8a87

Browse files
committed
Ajustes no projeto para suporte ao build no Travis-ci.
1 parent 8c92e04 commit 08d8a87

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: java
2+
before_script: "chmod +x ./build.sh"
3+
script: "./build.sh"

build.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
_PWD=`pwd`
4+
CopyLibs=$_PWD/lib/org-netbeans-modules-java-j2seproject-copylibstask.jar
5+
6+
CLASSPATH=$CLASSPATH:$CopyLibs:
7+
export CLASSPATH
8+
echo "CLASSPATH:"$CLASSPATH
9+
10+
echo " "
11+
echo "Compiling these projects:"
12+
for i in * ; do
13+
if [ -d "$i" ] && [ ! "$i" = "lib" ] && [ ! "$i" = "glassfish3" ]; then
14+
cd "$i"
15+
16+
if [ -f "manifest.mf" ]; then
17+
TARGET=jar
18+
else
19+
TARGET=dist
20+
fi
21+
TARGET=""
22+
23+
echo " "
24+
echo "----- $i -----"
25+
ant -Dlibs.CopyLibs.classpath="$CopyLibs" \
26+
$TARGET
27+
RET=$?
28+
if [ ! "$RET" = "0" ]; then
29+
exit $RET
30+
fi
31+
echo " "
32+
cd ..
33+
fi
34+
done
21.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)