New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.1x ci #1015
Closed
Closed
0.1x ci #1015
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b115be9
remove travis ci config
technoweenie 7e5676d
add CircleCI config
technoweenie 7b3caa1
add rubocop config
technoweenie 0396e35
remove lint checks
technoweenie 3c6bf7a
run test/unit, remove Code Climate test coverage reporter
technoweenie ead2288
exec func disorder
technoweenie File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
version: 2.1 | ||
|
||
# Share Steps: glued in using the YAML alias | ||
# See https://circleci.com/blog/circleci-hacks-reuse-yaml-in-your-circleci-config-with-yaml/ | ||
shared_ruby_steps: &shared_ruby_steps | ||
parameters: | ||
run-cc-reporter: | ||
type: boolean | ||
default: false | ||
steps: | ||
- attach_workspace: | ||
at: . | ||
- restore_cache: | ||
keys: | ||
- "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}" | ||
- run: | ||
name: Bundle Install | ||
command: bundle install --path vendor/bundle --jobs 7 --retry 15 | ||
- run: mkdir -p ~/test-results/rspec | ||
- run: | ||
name: Run tests | ||
command: bundle exec rake test | ||
- save_cache: | ||
key: "{{ .Environment.CACHE_KEY_PREFIX }}-v1-bundler-deps-{{ .Branch }}" | ||
paths: | ||
- ./vendor/bundle | ||
- store_test_results: | ||
path: ~/test-results/rspec | ||
- store_artifacts: | ||
path: ./Gemfile.lock | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- ./vendor/bundle | ||
|
||
jobs: | ||
checkout_code: | ||
docker: | ||
- image: circleci/ruby:2.6 | ||
steps: | ||
- checkout | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
- . | ||
|
||
ruby26: | ||
docker: | ||
- image: circleci/ruby:2.6 | ||
<<: *shared_ruby_steps | ||
|
||
ruby25: | ||
docker: | ||
- image: circleci/ruby:2.5 | ||
<<: *shared_ruby_steps | ||
|
||
ruby24: | ||
docker: | ||
- image: circleci/ruby:2.4 | ||
<<: *shared_ruby_steps | ||
|
||
ruby23: | ||
docker: | ||
- image: circleci/ruby:2.3 | ||
<<: *shared_ruby_steps | ||
|
||
# Currently not in use | ||
jruby92: | ||
docker: | ||
- image: circleci/jruby:9.2 | ||
environment: | ||
JRUBY_OPTS: "--debug" | ||
<<: *shared_ruby_steps | ||
|
||
deploy: | ||
docker: | ||
- image: circleci/ruby:2.6 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Setup Rubygems | ||
command: bash .circleci/setup-rubygems.sh | ||
|
||
- run: | ||
name: Publish to Rubygems | ||
command: | | ||
gem build faraday.gemspec | ||
gem push "faraday-$(git describe --tags).gem" | ||
|
||
workflows: | ||
version: 2 | ||
test: | ||
jobs: | ||
- checkout_code | ||
- ruby26: | ||
requires: | ||
- checkout_code | ||
run-cc-reporter: true | ||
- ruby25: | ||
requires: | ||
- checkout_code | ||
- ruby24: | ||
requires: | ||
- checkout_code | ||
- ruby23: | ||
requires: | ||
- checkout_code | ||
- deploy: | ||
requires: | ||
- ruby23 | ||
- ruby24 | ||
- ruby25 | ||
- ruby26 | ||
filters: | ||
tags: | ||
only: /.*/ | ||
branches: | ||
ignore: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
# | ||
# "Publishing RubyGems using Circle CI 2.0" explains how this works: | ||
# | ||
# https://medium.com/@pezholio/publishing-rubygems-using-circle-ci-2-0-1dbf06ae9942 | ||
# | ||
# - Get an API key from your profile page at RubyGems.org | ||
# - Add the API key as an Environment variable in your repo’s CircleCI | ||
# Project Settings/Build Settings/Environment Variables | ||
# - Have this script execute in the deploy stage of the CI build | ||
# - Now you can "gem push" | ||
|
||
mkdir ~/.gem | ||
echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials | ||
chmod 0600 /home/circleci/.gem/credentials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version: "2" | ||
plugins: | ||
rubocop: | ||
enabled: false |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.