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/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