From 8950c92f8e47ff6fd7058c04b6daf72cb1d013b3 Mon Sep 17 00:00:00 2001 From: Igor Makarov Date: Sun, 24 Jan 2021 12:23:23 +0200 Subject: [PATCH 1/2] add M1 pipeline on Buildkite --- .buildkite/pipeline.yml | 14 ++++++++++++++ .github/scripts/setup_test_repo.sh | 1 + 2 files changed, 15 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 From eb5660f8ec3f37d79d1de290a9dd3b3c9649190b Mon Sep 17 00:00:00 2001 From: Igor Makarov Date: Sun, 24 Jan 2021 19:49:09 +0200 Subject: [PATCH 2/2] swap tasks (temp) --- Rakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 73687a9ed..057beeb85 100644 --- a/Rakefile +++ b/Rakefile @@ -50,11 +50,11 @@ begin end task :all do - title 'Running Unit Tests' - sh "bundle exec bacon #{specs('**')}" - title 'Checking code style...' Rake::Task['rubocop'].invoke if RUBY_VERSION >= '1.9.3' + + title 'Running Unit Tests' + sh "bundle exec bacon #{specs('**')}" end end