#!/usr/bin/env bash

source scripts/prepare-ci-environment.sh

if [[ $IJ_ULTIMATE == "true" ]]; then
  export TEST_SET="integration"
fi

rm -rf $IDEA_TEST_HOME
mkdir -p $IDEA_TEST_HOME

pushd .cache
pushd pants
if [ -z ${PANTS_SHA+x} ]; then
  echo "Pulling the latest master..."
  git pull
else
  echo "Using $PANTS_SHA..."
  git reset --hard $PANTS_SHA
fi
git clean -fdx
./pants goals
popd
popd

args="test tests:${TEST_SET:-all} $(append_intellij_jvm_options test-junit) $@"

echo "Running ./pants $args"
./pants $args

#!/usr/bin/env bash

source scripts/prepare-ci-environment.sh

if [[ $IJ_ULTIMATE == "true" ]]; then
  export TEST_SET="integration"
fi

rm -rf $IDEA_TEST_HOME
mkdir -p $IDEA_TEST_HOME

pushd .cache
pushd pants
if [ -z ${PANTS_SHA+x} ]; then
  echo "Pulling the latest master..."
  git pull
else
  echo "Using $PANTS_SHA..."
  git reset --hard $PANTS_SHA
fi
popd
popd

args="test tests:${TEST_SET:-all} $(append_intellij_jvm_options test-junit) $@"

echo "Running ./pants $args"
./pants $args
Revert "unblock plugin ci from lock issue"
Revert "unblock plugin ci from lock issue"

This reverts commit 04f316712606950760aec90b11ef38849aee4e63, because lock issue is resolved by https://rbcommons.com/s/twitter/r/3668/.

Testing Done:
https://travis-ci.org/wisechengyi/intellij-pants-plugin/builds/121868523

Reviewed at https://rbcommons.com/s/twitter/r/3671/
