f0b8a57fe6
Changes: 1. Remove stuff no longer needed. Lots of the heavy lifting were there because we were running our own jenkins cluster and had to manage all the test logs ourselves. Now they are useless. 2. Change "-j2" to "-j4" to speed up the test a little bit. Kokoro machines have 4 logic CPUs according to their spec.
26 lines
647 B
Bash
Executable File
26 lines
647 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# This is the script that runs inside Docker, once the image has been built,
|
|
# to execute all tests for the "pull request" project.
|
|
|
|
WORKSPACE_BASE=`pwd`
|
|
MY_DIR="$(dirname "$0")"
|
|
TEST_SCRIPT=./tests.sh
|
|
BUILD_DIR=/tmp/protobuf
|
|
|
|
set -e # exit immediately on error
|
|
set -x # display all commands
|
|
|
|
# The protobuf repository is mounted into our Docker image, but read-only.
|
|
# We clone into a directory inside Docker (this is faster than cp).
|
|
rm -rf $BUILD_DIR
|
|
mkdir -p $BUILD_DIR
|
|
cd $BUILD_DIR
|
|
git clone /var/local/kokoro/protobuf
|
|
cd protobuf
|
|
|
|
# Initialize any submodules:
|
|
git submodule update --init --recursive
|
|
|
|
$TEST_SCRIPT $TEST_SET
|