diff --git a/.buildkite/pull_request_pipeline.yml b/.buildkite/pull_request_pipeline.yml new file mode 100644 index 00000000000..40b11a92802 --- /dev/null +++ b/.buildkite/pull_request_pipeline.yml @@ -0,0 +1,30 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json + +steps: + - label: ":passport_control: License check" + key: "license-check" + agents: + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci" + cpu: "4" + memory: "6Gi" + ephemeralStorage: "100Gi" + command: | + set -euo pipefail + + source .buildkite/scripts/common/container-agent.sh + export JRUBY_OPTS="-J-Xmx1g" + export GRADLE_OPTS="-Xmx2g -Dorg.gradle.daemon=false -Dorg.gradle.logging.level=info" + ci/license_check.sh -m 4G + + - label: ":rspec: Ruby unit tests" + key: "ruby-unit-tests" + agents: + image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-logstash-ci" + cpu: "4" + memory: "8Gi" + ephemeralStorage: "100Gi" + command: | + set -euo pipefail + + source .buildkite/scripts/common/container-agent.sh + ci/unit_tests.sh ruby diff --git a/.buildkite/scripts/common/container-agent.sh b/.buildkite/scripts/common/container-agent.sh new file mode 100644 index 00000000000..c664883f6f0 --- /dev/null +++ b/.buildkite/scripts/common/container-agent.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# ******************************************************** +# This file contains prerequisite bootstrap invocations +# required for Logstash CI when using containerized agents +# ******************************************************** + +set -euo pipefail + +export PATH="/usr/local/rbenv/bin:$PATH" +eval "$(rbenv init -)"