Skip to content

Commit

Permalink
Update ci script to use pants.pex built from sources rather than a re…
Browse files Browse the repository at this point in the history
…leased pants.

(sapling split of e38cde6aa5912199f99d319780de24b3d8311437)
  • Loading branch information
traviscrawford authored and Travis Crawford committed Mar 13, 2014
1 parent 63ef910 commit 00e1f10
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions build-support/bin/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,18 @@ if [[ "${skip_bootstrap:-false}" == "false" ]]; then
(
./build-support/python/clean.sh && \
PANTS_VERBOSE=1 PEX_VERBOSE=1 PYTHON_VERBOSE=1 ./pants.bootstrap;
./pants goal goals
./pants.pex goal goals
) || die "Failed to bootstrap pants."
fi

./pants goal clean-all || die "Failed to clean-all."
./pants.pex goal clean-all || die "Failed to clean-all."

if [[ "${skip_distribution:-false}" == "false" ]]; then
# TODO(John Sirois): Take this further and dogfood a bootstrap from the sdists generated by
# setup_py
banner "Running pants distribution tests"
(
./pants src/python/twitter/pants:_pants_transitional_publishable_binary_ && \
./pants.pex src/python/twitter/pants:_pants_transitional_publishable_binary_ && \
mv dist/_pants_transitional_publishable_binary_.pex dist/self.pex && \
./dist/self.pex src/python/twitter/pants:_pants_transitional_publishable_binary_ && \
./dist/self.pex setup_py --recursive src/python/twitter/pants:pants-packaged
Expand All @@ -73,18 +73,17 @@ fi
if [[ "${skip_java:-false}" == "false" ]]; then
banner "Running jvm tests"
(
./pants goal test {src,tests}/java/com/twitter/common:: $daemons -x && \
./pants goal test {src,tests}/scala/com/twitter/common:: $daemons -x
./pants.pex goal test {src,tests}/java/com/twitter/common:: $daemons -x && \
./pants.pex goal test {src,tests}/scala/com/twitter/common:: $daemons -x
) || die "Jvm test failure."
fi

if [[ "${skip_python:-false}" == "false" ]]; then
banner "Running python tests"
(
PANTS_PYTHON_TEST_FAILSOFT=1 ./pants build --timeout=5 tests/python/twitter/common:all && \
PANTS_PYTHON_TEST_FAILSOFT=1 ./pants build --timeout=5 tests/python/twitter/pants:all
PANTS_PYTHON_TEST_FAILSOFT=1 ./pants.pex build --timeout=5 tests/python/twitter/common:all && \
PANTS_PYTHON_TEST_FAILSOFT=1 ./pants.pex build --timeout=5 tests/python/twitter/pants:all
) || die "Python test failure"
fi

banner "CI SUCCESS"

0 comments on commit 00e1f10

Please sign in to comment.