Skip to content

Commit

Permalink
unit tests with expeditor for linux
Browse files Browse the repository at this point in the history
Signed-off-by: Ashique Saidalavi <[email protected]>
  • Loading branch information
ashiqueps committed Sep 11, 2024
1 parent 2d96ea5 commit 53c28e0
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 40 deletions.
16 changes: 16 additions & 0 deletions .expeditor/run_linux_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
#
# This script runs a passed in command, but first setups up the bundler caching on the repo

set -ue

export USER="root"
export LANG=C.UTF-8 LANGUAGE=C.UTF-8

echo "--- bundle install"

bundle config --local path vendor/bundle
bundle install --jobs=7 --retry=3

echo "+++ bundle exec task"
bundle exec $@
47 changes: 47 additions & 0 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
expeditor:
cached_folders:
- vendor
defaults:
buildkite:
retry:
automatic:
limit: 1
timeout_in_minutes: 30

steps:
- label: run-specs-ruby-3.1

Check failure on line 13 in .expeditor/verify.pipeline.yml

View workflow job for this annotation

GitHub Actions / yamllint

13:1 [indentation] wrong indentation: expected 2 but found 0
command:
- .expeditor/run_linux_tests.sh rake test
expeditor:
executor:
docker:
image: ruby:3.1

#- label: run-specs-windows-ruby-3.1

Check warning on line 21 in .expeditor/verify.pipeline.yml

View workflow job for this annotation

GitHub Actions / yamllint

21:2 [comments] missing starting space in comment
# command:
# - powershell .expeditor/run_windows_tests.ps1 rspec
# expeditor:
# executor:
# docker:
# host_os: windows
# shell: ["powershell", "-Command"]
# image: rubydistros/windows-2019:3.1

- label: run-specs-ruby-3.3
command:
- .expeditor/run_linux_tests.sh rspec
expeditor:
executor:
docker:
image: ruby:3.3

#- label: run-specs-windows-ruby-3.3

Check warning on line 39 in .expeditor/verify.pipeline.yml

View workflow job for this annotation

GitHub Actions / yamllint

39:2 [comments] missing starting space in comment
# command:
# - powershell .expeditor/run_windows_tests.ps1 rspec
# expeditor:
# executor:
# docker:
# host_os: windows
# shell: ["powershell", "-Command"]
# image: rubydistros/windows-2019:3.3
40 changes: 0 additions & 40 deletions .github/workflows/unit.yml

This file was deleted.

0 comments on commit 53c28e0

Please sign in to comment.