forked from elastic/go-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CI: Reintegrate whole CI into the same Dockerfile * CI: Update Makefile with CI improvments Change certificates names Update flavor resolution * CI: Github: Implement CI modifications into Actions * Examples: Update certificates names * Generator: Update go.mod & go.sum * CI: Fix mistake in COPY command * CI: Add mod download for generated tests * CI: Fix typo * CI: Add jenkins jobs for 7.12 * CI: Removing jenkins jobs for 7.10 * CI: Removing jenkins jobs for 5.x
- Loading branch information
1 parent
6f546f7
commit c653ef6
Showing
11 changed files
with
117 additions
and
146 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 was deleted.
Oops, something went wrong.
9 changes: 5 additions & 4 deletions
9
.ci/jobs/elastic+go-elasticsearch+7.10.yml → .ci/jobs/elastic+go-elasticsearch+7.12.yml
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
--- | ||
- job: | ||
name: elastic+go-elasticsearch+7.10 | ||
display-name: 'elastic / go-elasticsearch # 7.10' | ||
description: Testing the go-elasticsearch 7.10 branch. | ||
name: elastic+go-elasticsearch+7.12 | ||
display-name: 'elastic / go-elasticsearch # 7.12' | ||
description: Testing the go-elasticsearch 7.12 branch. | ||
junit_results: "*-junit.xml" | ||
parameters: | ||
- string: | ||
name: branch_specifier | ||
default: refs/heads/7.10 | ||
default: refs/heads/7.12 | ||
description: The Git branch specifier to build | ||
triggers: | ||
- github | ||
- timed: 'H */12 * * *' | ||
|
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 |
---|---|---|
@@ -1,26 +1,32 @@ | ||
#!/usr/bin/env bash | ||
#!/usr/bin/env sh | ||
|
||
set -euo pipefail | ||
set -uo pipefail | ||
|
||
TIMEFORMAT="(Duration: %0lR)" | ||
|
||
echo -e "\033[1m>>>>> Cleaning up test files\033[0m" | ||
echo -e "\033[34;1mINFO:\033[0m Cleaning up test files\033[0m" | ||
|
||
docker exec go-elasticsearch /bin/sh -c 'rm -rf esapi/test/*_test.go' | ||
docker exec go-elasticsearch /bin/sh -c 'rm -rf esapi/test/xpack' | ||
rm -rf esapi/test/*_test.go | ||
rm -rf esapi/test/xpack | ||
|
||
echo -e "\033[1m>>>>> Generating the API registry\033[0m" | ||
echo -e "\033[34;1mINFO:\033[0m Generating the API registry\033[0m" | ||
|
||
docker exec --workdir=/go-elasticsearch/internal/cmd/generate go-elasticsearch go get -u golang.org/x/tools/cmd/goimports | ||
docker exec --workdir=/go-elasticsearch/internal/cmd/generate --env PACKAGE_PATH=/go-elasticsearch/esapi go-elasticsearch go generate ./... | ||
cd /go-elasticsearch/internal/cmd/generate || exit | ||
go get -u golang.org/x/tools/cmd/goimports | ||
PACKAGE_PATH=/go-elasticsearch/esapi go generate ./... | ||
|
||
echo -e "\033[1m>>>>> Generating the test files\033[0m" | ||
echo -e "\033[34;1mINFO:\033[0m Generating the test files\033[0m" | ||
|
||
time docker exec --tty --workdir=/go-elasticsearch/internal/cmd/generate go-elasticsearch go run main.go apitests --output '/go-elasticsearch/esapi/test' --input '/elasticsearch-source/elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/test/**/*.y*ml' | ||
go run main.go apitests --output '/go-elasticsearch/esapi/test' --input '/tmp/elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/test/**/*.y*ml' | ||
|
||
echo -e "\033[1m>>>>> Running the tests\033[0m" | ||
echo -e "\033[34;1mINFO:\033[0m Download tests deps >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\033[0m" | ||
|
||
time docker exec --tty --workdir=/go-elasticsearch/esapi/test go-elasticsearch /bin/sh -c 'gotestsum --format=short-verbose --junitfile=$WORKSPACE/TEST-integration-api-junit.xml -- -tags=integration -timeout=1h *_test.go' | ||
cd /go-elasticsearch/esapi/test || exit | ||
go mod download | ||
|
||
echo -e "\033[34;1mINFO:\033[0m Running the tests\033[0m" | ||
|
||
gotestsum --format=short-verbose --junitfile=$WORKSPACE/TEST-integration-api-junit.xml -- -tags=integration -timeout=1h *_test.go | ||
status=$? | ||
|
||
exit $status |
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
Oops, something went wrong.