Skip to content

Commit ed70a26

Browse files
committed
fix ci errors
1 parent 153571e commit ed70a26

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ before_install:
3030
- |
3131
if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
3232
choco install jdk8 -params 'installdir=c:\\java8'
33-
choco install bazel --version 0.28.1
33+
choco install bazel --version 0.28.0
3434
fi
3535
- cat .bazelrc.travis >> .bazelrc
3636

test_reproducibility.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
set -e
44

5-
# ci stopgap: ensure tools/bazel is run for `bazel` invocations
6-
PATH="$(cd "$(dirname "$0")"/..; pwd)"/tools:$PATH
5+
if ! bazel_loc="$(type -p 'bazel')" || [[ -z "$bazel_loc" ]]; then
6+
export PATH="$(cd "$(dirname "$0")"; pwd)"/tools:$PATH
7+
echo 'Using ./tools/bazel directly for bazel calls'
8+
fi
79

810
md5_util() {
911
if [[ "$OSTYPE" == "darwin"* ]]; then

test_rules_scala.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
set -e
44

5-
# ci stopgap: ensure tools/bazel is run for `bazel` invocations
6-
PATH="$(cd "$(dirname "$0")"/..; pwd)"/tools:$PATH
5+
if ! bazel_loc="$(type -p 'bazel')" || [[ -z "$bazel_loc" ]]; then
6+
export PATH="$(cd "$(dirname "$0")"; pwd)"/tools:$PATH
7+
echo 'Using ./tools/bazel directly for bazel calls'
8+
fi
79

810
test_disappearing_class() {
911
git checkout test_expect_failure/disappearing_class/ClassProvider.scala

test_runner.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ run_test_ci() {
1212
local TEST_ARG=$@
1313
local log_file=output_$$.log
1414
echo "running test $TEST_ARG"
15-
$TEST_ARG &>$log_file &
15+
eval $TEST_ARG &>$log_file &
1616
local test_pid=$!
1717
SECONDS=0
1818
test_pulse_printer $! $TIMOUT $TEST_ARG &
@@ -83,4 +83,4 @@ get_test_runner() {
8383
exit 1
8484
fi
8585
echo "run_test_${test_env}"
86-
}
86+
}

0 commit comments

Comments
 (0)