blob: 26f89c693ee0d24e4906d6c6215a9ffefe78d36a [file] [log] [blame]
#!/bin/bash
ROOT=$TRAVIS_BUILD_DIR/..
# Fail the whole script if any command fails
set -e
export SHELLOPTS
SLUGOWNER=${TRAVIS_REPO_SLUG%/*}
if [[ "$SLUGOWNER" == "" ]]; then
SLUGOWNER=typetools
fi
# jsr308-langtools
if [ -d ../jsr308-langtools ] ; then
(cd ../jsr308-langtools && hg pull && hg update)
else
set +e
echo "Running: hg identify https://bitbucket.org/${SLUGOWNER}/jsr308-langtools &>-"
hg identify https://bitbucket.org/${SLUGOWNER}/jsr308-langtools &>-
if [ "$?" -ne 0 ]; then
SLUGOWNER=typetools
fi
set -e
echo "Running: (cd .. && hg clone https://bitbucket.org/${SLUGOWNER}/jsr308-langtools)"
(cd .. && (hg clone https://bitbucket.org/${SLUGOWNER}/jsr308-langtools || hg clone https://bitbucket.org/${SLUGOWNER}/jsr308-langtools))
echo "... done: (cd .. && hg clone https://bitbucket.org/${SLUGOWNER}/jsr308-langtools)"
fi
(cd ../jsr308-langtools/ && ./.travis-build-without-test.sh)
## Compile
echo "running \"ant compile\" for annotation-tools"
ant compile