Skip to content

Commit

Permalink
csl: Fix TravisCI builds
Browse files Browse the repository at this point in the history
Problem
TwitterServer depends on `finagle-zipkin`, which depends on `finagle-thrift`,
which depends on `finagle-core`, which depends on `scrooge-core`.

Solution
Publish local all the required dependencies for twitter-server. Cleanup the rest
of the travisci scripts.

RB_ID=759759
  • Loading branch information
vkostyukov authored and jenkins committed Oct 27, 2015
1 parent d7d823e commit 745ef2b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions bin/travisci
Expand Up @@ -7,25 +7,22 @@ FINAGLE_BRANCH=$(git rev-parse --abbrev-ref HEAD)

if [ "$FINAGLE_BRANCH" != "master" ]; then
FINAGLE_DIR=$(pwd)
# TODO try to use ./sbt of each project instead of finagle's sbt
FINAGLE_SBT=$FINAGLE_DIR/sbt
FINAGLE_TMP_DIR=$(mktemp -d -t ostrich.XXXXXXXXXX.tmp)
FINAGLE_TMP_DIR=$(mktemp -d -t finagle.XXXXXXXXXX.tmp)
# util
cd $FINAGLE_TMP_DIR
git clone https://github.com/twitter/util.git --branch develop
cd util
$FINAGLE_SBT ++$TRAVIS_SCALA_VERSION publishLocal
./sbt ++$TRAVIS_SCALA_VERSION publishLocal
# ostrich
cd $FINAGLE_TMP_DIR
git clone https://github.com/twitter/ostrich.git --branch develop
cd ostrich
$FINAGLE_SBT ++$TRAVIS_SCALA_VERSION publishLocal
./sbt ++$TRAVIS_SCALA_VERSION publishLocal
# scrooge-core. Finagle depends on scrooge-core, the rest of scrooge depends on finagle.
cd $FINAGLE_TMP_DIR
git clone https://github.com/twitter/scrooge.git --branch develop
cd scrooge
$FINAGLE_SBT ++$TRAVIS_SCALA_VERSION scrooge-core/publishLocal

./sbt ++$TRAVIS_SCALA_VERSION scrooge-core/publishLocal
# clean up
cd $FINAGLE_DIR
rm -rf $FINAGLE_TMP_DIR
Expand Down

0 comments on commit 745ef2b

Please sign in to comment.