Skip to content

Commit

Permalink
[CI] Moves lint and docs tasks to Buildkite
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Jul 13, 2023
1 parent 0b05e27 commit 00de1a8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .buildkite/build-documentation.sh
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
docker build --file .buildkite/Dockerfile --tag elastic/eland --build-arg PYTHON_VERSION=${PYTHON_VERSION} .
docker run \
--name doc_build \
--rm \
elastic/eland \
sudo apt-get update && sudo apt-get install --yes pandoc && nox -s docs

7 changes: 7 additions & 0 deletions .buildkite/lint-code.sh
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
docker build --file .buildkite/Dockerfile --tag elastic/eland --build-arg PYTHON_VERSION=${PYTHON_VERSION} .
docker run \
--name linter \
--rm \
elastic/eland \
nox -s lint
10 changes: 10 additions & 0 deletions .buildkite/pipeline.yml
@@ -1,4 +1,14 @@
steps:
- label: ":terminal: Lint code"
agents:
provider: "gcp"
commands:
- ./.buildkite/lint-code.sh
- label: ":books: Build documentation"
agents:
provider: "gcp"
commands:
- ./.buildkite/build-documentation.sh
- label: "Eland :python: {{ matrix.python }} :elasticsearch: {{ matrix.stack }}"
agents:
provider: "gcp"
Expand Down

0 comments on commit 00de1a8

Please sign in to comment.