Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

[PLTF-1737] Publish Avvo gems to both Packagecloud and Artifactory #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: 2.1

orbs:
artifact-management: avvo/[email protected]

jobs:
test:
docker:
- image: avvo/ruby-testing
auth:
username: $DOCKERHUB_USER
password: $DOCKERHUB_PASS

steps:
- checkout
- artifact-management/gem-test:
ruby_versions: "2.2.10,2.3.8,2.4.10,2.5.8,2.6.6"
build:
docker:
- image: circleci/ruby:2.6
steps:
- checkout
- artifact-management/gem-build-and-push

workflows:
version: 2.1
build-workflow:
jobs:
- test:
context: org-global
filters:
tags:
only: /.*/
branches:
only: /.*/
- build:
requires:
- test
context: org-global
filters:
tags:
only: /^v[0-9]+\.[0-9]+\.[0-9]+.*/
branches:
ignore: /.*/
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
CHANGELOG inspiration from http://keepachangelog.com/.

## [1.0.4pre1] - Oct 22, 2020
* Publish to both Packagecloud and Artifactory

## [1.0.1] - Dec 1, 2016
* remove minitest/autorun dependency on retrying minitest. Fixes issue where minitest is initialized when running any rake task.

Expand Down
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@ https://github.com/appfolio/minitest-optional_retry

## Installation

Add this line to your application's Gemfile:
Install Intransient Capybara from the command line:

```ruby
gem 'intransient_capybara'
```

And then execute:
$ gem install intransient_capybara --source https://avvo-gems.public.artifactory.internetbrands.com

$ bundle
or within a Gemfile:

Or install it yourself as:

$ gem install intransient_capybara
source 'https://avvo-gems.public.artifactory.internetbrands.com' do
gem 'intransient_capybara'
end

## Usage

Expand Down Expand Up @@ -123,7 +119,9 @@ Register the driver

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version.

When a commit is pushed to Github with a version tag, this will trigger a CircleCI job that will build the gem, run any tests, and push the new gem version to Avvo Artifactory repo.

## Contributing

Expand Down
4 changes: 2 additions & 2 deletions intransient_capybara.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
spec.add_dependency 'atomic', '~> 1.1'
spec.add_dependency 'minitest', '~> 5.8'

spec.add_development_dependency "bundler", "~> 1.10"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "bundler", "~> 1.17.3"
spec.add_development_dependency "rake", "~> 12.3.3"
end
2 changes: 1 addition & 1 deletion lib/intransient_capybara/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module IntransientCapybara
VERSION = "1.0.3"
VERSION = "1.0.4pre1"
end