forked from typetools/checker-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis-build-without-test.sh
executable file
·36 lines (30 loc) · 1.29 KB
/
.travis-build-without-test.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
34
35
36
#!/bin/bash
# Fail the whole script if any command fails
set -e
export SHELLOPTS
SLUGOWNER=${TRAVIS_REPO_SLUG%/*}
## Build annotation-tools (Annotation File Utilities)
if [ -d ../annotation-tools ] ; then
# Older versions of git don't support the -C command-line option
echo "Running: (cd ../annotation-tools && git pull)"
(cd ../annotation-tools && git pull)
echo "... done: (cd ../annotation-tools && git pull)"
else
set +e
echo "Running: git ls-remote https://github.com/${SLUGOWNER}/annotation-tools.git &>-"
git ls-remote https://github.com/${SLUGOWNER}/annotation-tools.git &>-
if [ "$?" -ne 0 ]; then
SLUGOWNER=typetools
fi
set -e
echo "Running: (cd .. && git clone --depth 1 https://github.com/${SLUGOWNER}/annotation-tools.git)"
(cd .. && git clone --depth 1 https://github.com/${SLUGOWNER}/annotation-tools.git)
echo "... done: (cd .. && git clone --depth 1 https://github.com/${SLUGOWNER}/annotation-tools.git)"
fi
# This also builds jsr308-langtools
echo "Running: (cd ../annotation-tools/ && ./.travis-build-without-test.sh)"
(cd ../annotation-tools/ && ./.travis-build-without-test.sh)
echo "... done: (cd ../annotation-tools/ && ./.travis-build-without-test.sh)"
## Compile
echo "running \"ant dist\" for checker-framework"
ant dist