Skip to content

Commit

Permalink
test-bot: split into multiple files, add RSpec tests.
Browse files Browse the repository at this point in the history
This should make it easier to add additional (particularly regression)
tests and generally refactor Homebrew/homebrew-test-bot.
  • Loading branch information
MikeMcQuaid committed Nov 13, 2019
1 parent 61e9e17 commit bb8e6f2
Show file tree
Hide file tree
Showing 20 changed files with 1,998 additions and 1,785 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ jobs:
rm -rf /usr/local/lib/ruby
if: matrix.os == 'macOS-latest'

- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: '>=2.3'
if: matrix.os == 'ubuntu-latest'

- name: Install RubyGems
run: |
gem install bundler -v "~>1"
bundle install --jobs 4 --retry 3
- name: Run RSpec tests
run: bundle exec rspec

- name: Build Docker image
run: docker-compose -f Dockerfile.yml build sut
if: matrix.os == 'ubuntu-latest'
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage/
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# don't try to be clever with the Gemfile
language: c

branches:
only:
- master
Expand Down
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source "https://rubygems.org"

group :test do
gem "rspec"
gem "simplecov"
end
34 changes: 34 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.3)
docile (1.3.2)
json (2.2.0)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.0)
rspec-support (~> 3.9.0)
rspec-expectations (3.9.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.0)
simplecov (0.17.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)

PLATFORMS
ruby

DEPENDENCIES
rspec
simplecov

BUNDLED WITH
1.17.2
Loading

0 comments on commit bb8e6f2

Please sign in to comment.