Skip to content

Commit

Permalink
Use CircleCI instead of TravisCI for automated builds
Browse files Browse the repository at this point in the history
PR: #514
  • Loading branch information
floehopper committed Jun 18, 2021
2 parents c78f75c + 08fca37 commit c98c6ec
Show file tree
Hide file tree
Showing 19 changed files with 92 additions and 358 deletions.
79 changes: 79 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,79 @@
version: 2.1

jobs:
build:
parameters:
docker-image:
type: string
gemfile:
type: string
docker:
- image: << parameters.docker-image >>
environment:
MOCHA_OPTIONS=debug
steps:
- checkout
- run: ruby --version
- when:
condition:
equal: [ "ruby:1.9", << parameters.docker-image >>]
steps:
- run: gem update --system 2.7.8
- run: gem install bundler -v1.17.3
- when:
condition:
equal: [ "jruby:latest", << parameters.docker-image >>]
steps:
- run: apt-get update
- run: apt-get install -y git
- run: gem --version
- run: bundle --version
- run: bundle install --gemfile=<< parameters.gemfile >>
- when:
condition:
equal: [ "Gemfile", << parameters.gemfile >>]
steps:
- run: bundle exec rake test
- when:
condition:
matches:
pattern: ".*minitest.*"
value: << parameters.gemfile >>
steps:
- run: MOCHA_RUN_INTEGRATION_TESTS=minitest bundle exec --gemfile=<< parameters.gemfile >> rake test
- when:
condition:
matches:
pattern: ".*test-unit.*"
value: << parameters.gemfile >>
steps:
- run: MOCHA_RUN_INTEGRATION_TESTS=test-unit bundle exec --gemfile=<< parameters.gemfile >> rake test

workflows:
build-all:
jobs:
- build:
matrix:
parameters:
docker-image:
- ruby:1.9
- ruby:2.0
- ruby:2.1
- ruby:2.2
- ruby:2.3
- ruby:2.4
- ruby:2.5
- ruby:2.6
- ruby:2.7
- ruby:latest
- jruby:latest
gemfile:
- Gemfile
- build:
matrix:
parameters:
docker-image:
- ruby:latest
gemfile:
- gemfiles/Gemfile.minitest.latest
- gemfiles/Gemfile.test-unit.latest
176 changes: 0 additions & 176 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -3,5 +3,5 @@
* Make your changes in a branch.
* Add/modify/remove tests as appropriate.
* Open a pull request based on a branch on your fork.
* Wait for your pull request build to pass on [Travis CI](https://travis-ci.com/github/freerange/mocha/pull_requests).
* Wait for your pull request build to pass on [Circle CI](https://app.circleci.com/pipelines/github/freerange/mocha).
* Pull requests with failing tests will not be accepted.
4 changes: 2 additions & 2 deletions README.md
@@ -1,4 +1,4 @@
## Mocha [![Build Status](https://travis-ci.com/freerange/mocha.svg?branch=main)](https://travis-ci.com/github/freerange/mocha) [![Gem Version](https://badge.fury.io/rb/mocha.svg)](http://badge.fury.io/rb/mocha) [![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=mocha&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=mocha&package-manager=bundler&version-scheme=semver)
## Mocha [![CircleCI status of freerange/mocha](https://circleci.com/gh/freerange/mocha.svg?style=shield)](https://app.circleci.com/pipelines/github/freerange/mocha) [![Gem Version](https://badge.fury.io/rb/mocha.svg)](http://badge.fury.io/rb/mocha) [![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=mocha&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=mocha&package-manager=bundler&version-scheme=semver)

### Description

Expand Down Expand Up @@ -323,7 +323,7 @@ See this [list of contributors](https://github.com/freerange/mocha/graphs/contri
* Update the RELEASE.md file with a summary of changes
* Bump the version in `lib/mocha/version.rb`
* Commit & push to GitHub
* Check Travis CI build is passing - https://travis-ci.com/github/freerange/mocha
* Check CircleCI build is passing - https://app.circleci.com/pipelines/github/freerange/mocha

* Sign in to Google Analytics - https://analytics.google.com/analytics/web/
* Find the web property ID for floehopper (625523) > Mocha Documentation (UA-625523-7)
Expand Down
82 changes: 0 additions & 82 deletions bin/build-matrix

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/Gemfile.minitest.1.3.0

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/Gemfile.minitest.1.4.0

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/Gemfile.minitest.1.4.1

This file was deleted.

7 changes: 0 additions & 7 deletions gemfiles/Gemfile.minitest.1.4.2

This file was deleted.

0 comments on commit c98c6ec

Please sign in to comment.