Merge pull request #5468 from haon4/master
Use docker for csharp, java_compatibility, and python_compatibility.pull/5470/head
commit
e9ea200e71
5 changed files with 43 additions and 35 deletions
@ -1,11 +1,17 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
# |
# |
||||||
# Build file to set up and run tests |
# This is the top-level script we give to Kokoro as the entry point for |
||||||
|
# running the "pull request" project: |
||||||
|
# |
||||||
|
# This script selects a specific Dockerfile (for building a Docker image) and |
||||||
|
# a script to run inside that image. Then we delegate to the general |
||||||
|
# build_and_run_docker.sh script. |
||||||
|
|
||||||
# Change to repo root |
# Change to repo root |
||||||
cd $(dirname $0)/../../.. |
cd $(dirname $0)/../../.. |
||||||
|
|
||||||
# Prepare worker environment to run tests |
export DOCKERFILE_DIR=kokoro/linux/64-bit |
||||||
source kokoro/linux/prepare_build_linux_rc |
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh |
||||||
|
export OUTPUT_DIR=testoutput |
||||||
./tests.sh csharp |
export TEST_SET="csharp" |
||||||
|
./kokoro/linux/build_and_run_docker.sh |
||||||
|
@ -1,11 +1,17 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
# |
# |
||||||
# Build file to set up and run tests |
# This is the top-level script we give to Kokoro as the entry point for |
||||||
|
# running the "pull request" project: |
||||||
|
# |
||||||
|
# This script selects a specific Dockerfile (for building a Docker image) and |
||||||
|
# a script to run inside that image. Then we delegate to the general |
||||||
|
# build_and_run_docker.sh script. |
||||||
|
|
||||||
# Change to repo root |
# Change to repo root |
||||||
cd $(dirname $0)/../../.. |
cd $(dirname $0)/../../.. |
||||||
|
|
||||||
# Prepare worker environment to run tests |
export DOCKERFILE_DIR=kokoro/linux/64-bit |
||||||
source kokoro/linux/prepare_build_linux_rc |
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh |
||||||
|
export OUTPUT_DIR=testoutput |
||||||
./tests.sh java_compatibility |
export TEST_SET="java_compatibility" |
||||||
|
./kokoro/linux/build_and_run_docker.sh |
||||||
|
@ -1,13 +0,0 @@ |
|||||||
#!/bin/bash |
|
||||||
|
|
||||||
# Source this rc script to prepare the environment for Linux builds |
|
||||||
|
|
||||||
# Set up dotnet |
|
||||||
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/dotnetdev.list' |
|
||||||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF |
|
||||||
sudo apt-get update |
|
||||||
# We use the .NET Core SDK 2.x to build... |
|
||||||
sudo apt-get install -y dotnet-sdk-2.1.3 |
|
||||||
# But we also need the 1.x framework to test against, as we |
|
||||||
# target netstandard1.x |
|
||||||
sudo apt-get install -y dotnet-sharedframework-microsoft.netcore.app-1.0.5 |
|
@ -1,11 +1,17 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
# |
# |
||||||
# Build file to set up and run tests |
# This is the top-level script we give to Kokoro as the entry point for |
||||||
|
# running the "pull request" project: |
||||||
|
# |
||||||
|
# This script selects a specific Dockerfile (for building a Docker image) and |
||||||
|
# a script to run inside that image. Then we delegate to the general |
||||||
|
# build_and_run_docker.sh script. |
||||||
|
|
||||||
# Change to repo root |
# Change to repo root |
||||||
cd $(dirname $0)/../../.. |
cd $(dirname $0)/../../.. |
||||||
|
|
||||||
# Prepare worker environment to run tests |
export DOCKERFILE_DIR=kokoro/linux/64-bit |
||||||
source kokoro/linux/prepare_build_linux_rc |
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh |
||||||
|
export OUTPUT_DIR=testoutput |
||||||
./tests.sh python_compatibility |
export TEST_SET="python_compatibility" |
||||||
|
./kokoro/linux/build_and_run_docker.sh |
||||||
|
Loading…
Reference in new issue