From 8b6961ab05f4486c7d56ceb6c61eb0f8c3029af3 Mon Sep 17 00:00:00 2001 From: Igor Makarov Date: Sun, 24 Jan 2021 12:23:23 +0200 Subject: [PATCH] add M1 pipeline on Buildkite --- .buildkite/pipeline.yml | 14 ++++++++++++++ .github/scripts/setup_test_repo.sh | 1 + .gitignore | 1 + 3 files changed, 16 insertions(+) create mode 100644 .buildkite/pipeline.yml diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 000000000..1aa3e81a2 --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,14 @@ +steps: + - label: ":hammer: Specs" + agents: + m1: true + commands: + - echo "--- Initialize git" + - git submodule update --init + - ./.github/scripts/setup_test_repo.sh + - echo "--- Bundler" + - gem install bundler:1.17.3 + - bundle config path vendor/bundle + - bundle install --jobs 4 --retry 3 --without debugging documentation + - echo "+++ Run Specs" + - bundle exec rake spec diff --git a/.github/scripts/setup_test_repo.sh b/.github/scripts/setup_test_repo.sh index ffa155731..01b217ba2 100755 --- a/.github/scripts/setup_test_repo.sh +++ b/.github/scripts/setup_test_repo.sh @@ -1,4 +1,5 @@ #!/bin/sh cd spec/fixtures/spec-repos/test_repo +rm -rf .git || true git init git remote add origin https://bitbucket.com/test/test_repo.git diff --git a/.gitignore b/.gitignore index 21ecc49f4..4b5e1b585 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ coverage/ .idea/ documentation/ .bundle/ +vendor/bundle # trunk source spec/fixtures/spec-repos/trunk/**/*.etag