-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
(cherry picked from commit 7085a90)
- Loading branch information
Showing
11 changed files
with
103 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env bash | ||
# parameters are available to this script | ||
|
||
|
||
# common build entry script for all elasticsearch clients | ||
|
||
# ./.ci/make.sh bump VERSION | ||
# ./.ci/make.sh release VERSION | ||
|
||
script_path=$(dirname "$(realpath -s "$0")") | ||
repo=$(realpath "$script_path/../") | ||
|
||
# shellcheck disable=SC1090 | ||
cmd=$1 | ||
VERSION=$2 | ||
STACK_VERSION=$VERSION | ||
source "$script_path/functions/imports.sh" | ||
set -euo pipefail | ||
|
||
output_folder=".ci/output" | ||
OUTPUT_DIR="$repo/${output_folder}" | ||
|
||
DOTNET_VERSION=${DOTNET_VERSION-3.0.100} | ||
|
||
echo -e "\033[34;1mINFO:\033[0m VERSION ${STACK_VERSION}\033[0m" | ||
echo -e "\033[34;1mINFO:\033[0m OUTPUT_DIR ${OUTPUT_DIR}\033[0m" | ||
echo -e "\033[34;1mINFO:\033[0m DOTNET_VERSION ${DOTNET_VERSION}\033[0m" | ||
|
||
echo -e "\033[1m>>>>> Build [elastic/elasticsearch-net container] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" | ||
|
||
docker build --file .ci/DockerFile --tag elastic/elasticsearch-net . | ||
|
||
echo -e "\033[1m>>>>> Run [elastic/elasticsearch-net container] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" | ||
|
||
mkdir -p "$OUTPUT_DIR" | ||
|
||
docker run \ | ||
--network=${network_name} \ | ||
--env "DOTNET_VERSION" \ | ||
--name test-runner \ | ||
--volume "${OUTPUT_DIR}:/sln/${output_folder}" \ | ||
--rm \ | ||
elastic/elasticsearch-net \ | ||
./build.sh release "$VERSION" "$output_folder" "skiptests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,8 @@ build/tools/* | |
!build/*.targets | ||
!build/scripts | ||
|
||
.ci/output | ||
|
||
|
||
/dep/Newtonsoft.Json.4.0.2 | ||
!docs/build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters