This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d459b1c
Showing
17 changed files
with
466 additions
and
0 deletions.
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,43 @@ | ||
# Ruby CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-ruby/ for more details | ||
# | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
# specify the version you desire here | ||
- image: circleci/ruby:2.4.2 | ||
|
||
working_directory: ~/repo | ||
|
||
steps: | ||
- checkout | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "Gemfile" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
- run: | ||
name: install dependencies | ||
command: bundle check || bundle install --jobs=4 --retry=3 --path vendor/bundle | ||
|
||
- save_cache: | ||
paths: | ||
- ./vendor | ||
key: v1-dependencies-{{ checksum "Gemfile" }} | ||
|
||
# run tests! | ||
- run: | ||
name: run tests | ||
command: bundle exec rake | ||
|
||
# collect reports | ||
- store_test_results: | ||
path: ~/repo/test-results | ||
- store_artifacts: | ||
path: ~/repo/test-results | ||
destination: test-results |
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,12 @@ | ||
*.gem | ||
Gemfile.lock | ||
|
||
## Documentation cache and generated files: | ||
/.yardoc/ | ||
/_yardoc/ | ||
/doc/ | ||
/rdoc/ | ||
fastlane/README.md | ||
fastlane/report.xml | ||
coverage | ||
test-results |
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,5 @@ | ||
--require spec_helper | ||
--color | ||
--format d | ||
--format RspecJunitFormatter | ||
--out test-results/rspec/rspec.xml |
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,179 @@ | ||
--- | ||
Style/MultipleComparison: | ||
Enabled: false | ||
Style/PercentLiteralDelimiters: | ||
Enabled: false | ||
Style/ClassCheck: | ||
EnforcedStyle: kind_of? | ||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
Style/SafeNavigation: | ||
Enabled: false | ||
Performance/RegexpMatch: | ||
Enabled: false | ||
Performance/StringReplacement: | ||
Enabled: false | ||
Style/NumericPredicate: | ||
Enabled: false | ||
Metrics/BlockLength: | ||
Enabled: false | ||
Metrics/ModuleLength: | ||
Enabled: false | ||
Style/VariableNumber: | ||
Enabled: false | ||
Style/MethodMissing: | ||
Enabled: false | ||
MultilineBlockChain: | ||
Enabled: false | ||
Style/NumericLiteralPrefix: | ||
Enabled: false | ||
Style/TernaryParentheses: | ||
Enabled: false | ||
Style/EmptyMethod: | ||
Enabled: false | ||
Style/BracesAroundHashParameters: | ||
Enabled: false | ||
Lint/UselessAssignment: | ||
Exclude: | ||
- "**/spec/**/*" | ||
Require/MissingRequireStatement: | ||
Exclude: | ||
- "**/spec/**/*.rb" | ||
- "**/spec_helper.rb" | ||
- spaceship/lib/spaceship/babosa_fix.rb | ||
- "**/Fastfile" | ||
- "**/*.gemspec" | ||
- rakelib/**/* | ||
- "**/*.rake" | ||
- "**/Rakefile" | ||
- fastlane/**/* | ||
- supply/**/* | ||
Layout/IndentHash: | ||
Enabled: false | ||
Layout/AlignHash: | ||
Enabled: false | ||
Layout/DotPosition: | ||
Enabled: false | ||
Style/DoubleNegation: | ||
Enabled: false | ||
Style/SymbolArray: | ||
Enabled: false | ||
Layout/IndentHeredoc: | ||
Enabled: false | ||
Style/MixinGrouping: | ||
Exclude: | ||
- "**/spec/**/*" | ||
Lint/HandleExceptions: | ||
Enabled: false | ||
Lint/UnusedBlockArgument: | ||
Enabled: false | ||
Lint/AmbiguousBlockAssociation: | ||
Enabled: false | ||
Style/GlobalVars: | ||
Enabled: false | ||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
Style/SpecialGlobalVars: | ||
Enabled: false | ||
Metrics/AbcSize: | ||
Enabled: false | ||
Metrics/MethodLength: | ||
Enabled: false | ||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
Style/WordArray: | ||
MinSize: 19 | ||
Style/SignalException: | ||
Enabled: false | ||
Style/RedundantReturn: | ||
Enabled: false | ||
Style/IfUnlessModifier: | ||
Enabled: false | ||
Style/AndOr: | ||
Enabled: true | ||
EnforcedStyle: conditionals | ||
Metrics/ClassLength: | ||
Max: 320 | ||
Metrics/LineLength: | ||
Max: 370 | ||
Metrics/ParameterLists: | ||
Max: 17 | ||
Metrics/PerceivedComplexity: | ||
Max: 18 | ||
Style/GuardClause: | ||
Enabled: false | ||
Style/StringLiterals: | ||
Enabled: false | ||
Style/ConditionalAssignment: | ||
Enabled: false | ||
Style/RedundantSelf: | ||
Enabled: false | ||
Lint/UnusedMethodArgument: | ||
Enabled: false | ||
Lint/ParenthesesAsGroupedExpression: | ||
Exclude: | ||
- "**/spec/**/*" | ||
Style/PredicateName: | ||
Enabled: false | ||
Style/PerlBackrefs: | ||
Enabled: false | ||
Layout/SpaceAroundOperators: | ||
Exclude: | ||
- "**/spec/actions_specs/xcodebuild_spec.rb" | ||
AllCops: | ||
TargetRubyVersion: 2.0 | ||
Include: | ||
- "*/lib/assets/*Template" | ||
- "*/lib/assets/*TemplateAndroid" | ||
Exclude: | ||
- "**/lib/assets/custom_action_template.rb" | ||
- "./vendor/**/*" | ||
- "**/lib/assets/DefaultFastfileTemplate" | ||
- "**/spec/fixtures/broken_files/broken_file.rb" | ||
Style/FileName: | ||
Exclude: | ||
- "**/Dangerfile" | ||
- "**/Brewfile" | ||
- "**/Gemfile" | ||
- "**/Podfile" | ||
- "**/Rakefile" | ||
- "**/Fastfile" | ||
- "**/Deliverfile" | ||
- "**/Snapfile" | ||
- "**/*.gemspec" | ||
Style/Documentation: | ||
Enabled: false | ||
Style/MutableConstant: | ||
Enabled: false | ||
Style/ZeroLengthPredicate: | ||
Enabled: false | ||
Style/IfInsideElse: | ||
Enabled: false | ||
Style/CollectionMethods: | ||
Enabled: false | ||
CrossPlatform/ForkUsage: | ||
Exclude: | ||
- "**/plugins/template/**/*" | ||
Style/MethodCallWithArgsParentheses: | ||
Enabled: true | ||
IgnoredMethods: | ||
- require | ||
- require_relative | ||
- fastlane_require | ||
- gem | ||
- program | ||
- command | ||
- raise | ||
- attr_accessor | ||
- attr_reader | ||
- desc | ||
- lane | ||
- private_lane | ||
- platform | ||
- to | ||
- describe | ||
- it | ||
- be | ||
- context | ||
- before | ||
- after |
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 @@ | ||
# os: osx # enable this if you need macOS support | ||
language: ruby | ||
rvm: | ||
- 2.2.4 |
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,6 @@ | ||
source('https://rubygems.org') | ||
|
||
gemspec | ||
|
||
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') | ||
eval_gemfile(plugins_path) if File.exist?(plugins_path) |
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,52 @@ | ||
# fetch_version_code plugin | ||
|
||
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-fetch_version_code) | ||
|
||
## Getting Started | ||
|
||
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-fetch_version_code`, add it to your project by running: | ||
|
||
```bash | ||
fastlane add_plugin fetch_version_code | ||
``` | ||
|
||
## About fetch_version_code | ||
|
||
Fetch (and increment) version code for given platform | ||
|
||
**Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here. | ||
|
||
## Example | ||
|
||
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`. | ||
|
||
**Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary) | ||
|
||
## Run tests for this plugin | ||
|
||
To run both the tests, and code style validation, run | ||
|
||
``` | ||
rake | ||
``` | ||
|
||
To automatically fix many of the styling issues, use | ||
``` | ||
rubocop -a | ||
``` | ||
|
||
## Issues and Feedback | ||
|
||
For any other issues and feedback about this plugin, please submit it to this repository. | ||
|
||
## Troubleshooting | ||
|
||
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide. | ||
|
||
## Using _fastlane_ Plugins | ||
|
||
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/). | ||
|
||
## About _fastlane_ | ||
|
||
_fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools). |
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,9 @@ | ||
require 'bundler/gem_tasks' | ||
|
||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new | ||
|
||
require 'rubocop/rake_task' | ||
RuboCop::RakeTask.new(:rubocop) | ||
|
||
task(default: [:spec, :rubocop]) |
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,34 @@ | ||
# coding: utf-8 | ||
|
||
lib = File.expand_path("../lib", __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'fastlane/plugin/fetch_version_code/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'fastlane-plugin-fetch_version_code' | ||
spec.version = Fastlane::FetchVersionCode::VERSION | ||
spec.author = 'CoorpAcademy' | ||
spec.email = '[email protected]' | ||
|
||
spec.summary = 'Fetch (and increment) version code for given platform' | ||
spec.homepage = "https://github.com/CoorpAcademy/fastlane-plugin-fetch_version_code" | ||
|
||
spec.files = Dir["lib/**/*"] + %w(README.md LICENSE) | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ['lib'] | ||
|
||
# Don't add a dependency to fastlane or fastlane_re | ||
# since this would cause a circular dependency | ||
|
||
# spec.add_dependency 'your-dependency', '~> 1.0.0' | ||
|
||
spec.add_development_dependency('pry') | ||
spec.add_development_dependency('bundler') | ||
spec.add_development_dependency('rspec') | ||
spec.add_development_dependency('rspec_junit_formatter') | ||
spec.add_development_dependency('rake') | ||
spec.add_development_dependency('rubocop', '0.49.1') | ||
spec.add_development_dependency('rubocop-require_tools') | ||
spec.add_development_dependency('simplecov') | ||
spec.add_development_dependency('fastlane', '>= 2.108.0') | ||
end |
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,3 @@ | ||
lane :test do | ||
fetch_version_code | ||
end |
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 @@ | ||
# Autogenerated by fastlane |
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,16 @@ | ||
require 'fastlane/plugin/fetch_version_code/version' | ||
|
||
module Fastlane | ||
module FetchVersionCode | ||
# Return all .rb files inside the "actions" and "helper" directory | ||
def self.all_classes | ||
Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))] | ||
end | ||
end | ||
end | ||
|
||
# By default we want to import all available actions and helpers | ||
# A plugin can contain any number of actions and plugins | ||
Fastlane::FetchVersionCode.all_classes.each do |current| | ||
require current | ||
end |
Oops, something went wrong.