diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..14669f0 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,45 @@ +# 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.1 + + 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 install --jobs=4 --retry=3 --path vendor/bundle + + - save_cache: + paths: + - ./venv + key: v1-dependencies-{{ checksum "Gemfile" }} + + # run tests! + - run: + name: run tests + command: | + bundle exec rake + + # collect reports + - store_test_results: + path: ~/repo/fastlane/report.junit + - store_artifacts: + path: ~/repo/fastlane + destination: test-results diff --git a/.gitignore b/.gitignore index 005d50f..304119b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.gem +Gemfile.lock ## Documentation cache and generated files: /.yardoc/ @@ -9,3 +10,4 @@ fastlane/report.xml fastlane/README.md coverage +test-results diff --git a/.rspec b/.rspec index 79b4f5e..e1f89b5 100644 --- a/.rspec +++ b/.rspec @@ -1,3 +1,5 @@ --require spec_helper --color --format d +--format RspecJunitFormatter +--out test-results/rspec/rspec.xml diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 7b96051..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,249 +0,0 @@ -PATH - remote: . - specs: - fastlane-plugin-branch (0.5.2) - fastlane-plugin-patch - plist - xcodeproj - -GEM - remote: https://rubygems.org/ - specs: - CFPropertyList (2.3.5) - activesupport (4.2.10) - i18n (~> 0.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - addressable (2.5.2) - public_suffix (>= 2.0.2, < 4.0) - ast (2.3.0) - babosa (1.0.2) - claide (1.0.2) - cocoapods (1.3.1) - activesupport (>= 4.0.2, < 5) - claide (>= 1.0.2, < 2.0) - cocoapods-core (= 1.3.1) - cocoapods-deintegrate (>= 1.0.1, < 2.0) - cocoapods-downloader (>= 1.1.3, < 2.0) - cocoapods-plugins (>= 1.0.0, < 2.0) - cocoapods-search (>= 1.0.0, < 2.0) - cocoapods-stats (>= 1.0.0, < 2.0) - cocoapods-trunk (>= 1.2.0, < 2.0) - cocoapods-try (>= 1.1.0, < 2.0) - colored2 (~> 3.1) - escape (~> 0.0.4) - fourflusher (~> 2.0.1) - gh_inspector (~> 1.0) - molinillo (~> 0.5.7) - nap (~> 1.0) - ruby-macho (~> 1.1) - xcodeproj (>= 1.5.1, < 2.0) - cocoapods-core (1.3.1) - activesupport (>= 4.0.2, < 6) - fuzzy_match (~> 2.0.4) - nap (~> 1.0) - cocoapods-deintegrate (1.0.1) - cocoapods-downloader (1.1.3) - cocoapods-plugins (1.0.0) - nap - cocoapods-search (1.0.0) - cocoapods-stats (1.0.0) - cocoapods-trunk (1.3.0) - nap (>= 0.8, < 2.0) - netrc (~> 0.11) - cocoapods-try (1.1.0) - coderay (1.1.2) - colored (1.2) - colored2 (3.1.2) - commander-fastlane (4.4.5) - highline (~> 1.7.2) - declarative (0.0.10) - declarative-option (0.1.0) - diff-lcs (1.3) - docile (1.1.5) - domain_name (0.5.20170404) - unf (>= 0.0.5, < 1.0.0) - dotenv (2.2.1) - escape (0.0.4) - excon (0.59.0) - faraday (0.13.1) - multipart-post (>= 1.2, < 3) - faraday-cookie_jar (0.0.6) - faraday (>= 0.7.4) - http-cookie (~> 1.0.0) - faraday_middleware (0.12.2) - faraday (>= 0.7.4, < 1.0) - fastimage (2.1.0) - fastlane (2.60.1) - CFPropertyList (>= 2.3, < 3.0.0) - addressable (>= 2.3, < 3.0.0) - babosa (>= 1.0.2, < 2.0.0) - bundler (>= 1.12.0, < 2.0.0) - colored - commander-fastlane (>= 4.4.5, < 5.0.0) - dotenv (>= 2.1.1, < 3.0.0) - excon (>= 0.45.0, < 1.0.0) - faraday (~> 0.9) - faraday-cookie_jar (~> 0.0.6) - faraday_middleware (~> 0.9) - fastimage (>= 2.1.0, < 3.0.0) - gh_inspector (>= 1.0.1, < 2.0.0) - google-api-client (>= 0.13.1, < 0.14.0) - highline (>= 1.7.2, < 2.0.0) - json (< 3.0.0) - mini_magick (~> 4.5.1) - multi_json - multi_xml (~> 0.5) - multipart-post (~> 2.0.0) - plist (>= 3.1.0, < 4.0.0) - public_suffix (~> 2.0.0) - rubyzip (>= 1.1.0, < 2.0.0) - security (= 0.1.3) - slack-notifier (>= 1.3, < 2.0.0) - terminal-notifier (>= 1.6.2, < 2.0.0) - terminal-table (>= 1.4.5, < 2.0.0) - tty-screen (~> 0.5.0) - word_wrap (~> 1.0.0) - xcodeproj (>= 1.5.0, < 2.0.0) - xcpretty (>= 0.2.4, < 1.0.0) - xcpretty-travis-formatter (>= 0.0.3) - fastlane-plugin-patch (0.4.0) - fourflusher (2.0.1) - fuzzy_match (2.0.4) - gh_inspector (1.0.3) - google-api-client (0.13.6) - addressable (~> 2.5, >= 2.5.1) - googleauth (~> 0.5) - httpclient (>= 2.8.1, < 3.0) - mime-types (~> 3.0) - representable (~> 3.0) - retriable (>= 2.0, < 4.0) - googleauth (0.5.3) - faraday (~> 0.12) - jwt (~> 1.4) - logging (~> 2.0) - memoist (~> 0.12) - multi_json (~> 1.11) - os (~> 0.9) - signet (~> 0.7) - highline (1.7.8) - http-cookie (1.0.3) - domain_name (~> 0.5) - httpclient (2.8.3) - i18n (0.8.6) - json (2.1.0) - jwt (1.5.6) - little-plugger (1.1.4) - logging (2.2.2) - little-plugger (~> 1.1) - multi_json (~> 1.10) - memoist (0.16.0) - method_source (0.9.0) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_magick (4.5.1) - minitest (5.10.3) - molinillo (0.5.7) - multi_json (1.12.2) - multi_xml (0.6.0) - multipart-post (2.0.0) - nanaimo (0.2.3) - nap (1.1.0) - netrc (0.11.0) - os (0.9.6) - parallel (1.12.0) - parser (2.4.0.0) - ast (~> 2.2) - plist (3.3.0) - powerpack (0.1.1) - pry (0.11.1) - coderay (~> 1.1.0) - method_source (~> 0.9.0) - public_suffix (2.0.5) - rainbow (2.2.2) - rake - rake (12.1.0) - representable (3.0.4) - declarative (< 0.1.0) - declarative-option (< 0.2.0) - uber (< 0.2.0) - retriable (3.1.1) - rouge (2.0.7) - rspec (3.6.0) - rspec-core (~> 3.6.0) - rspec-expectations (~> 3.6.0) - rspec-mocks (~> 3.6.0) - rspec-core (3.6.0) - rspec-support (~> 3.6.0) - rspec-expectations (3.6.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.6.0) - rspec-mocks (3.6.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.6.0) - rspec-simplecov (0.2.2) - rspec-support (3.6.0) - rubocop (0.50.0) - parallel (~> 1.10) - parser (>= 2.3.3.1, < 3.0) - powerpack (~> 0.1) - rainbow (>= 2.2.2, < 3.0) - ruby-progressbar (~> 1.7) - unicode-display_width (~> 1.0, >= 1.0.1) - ruby-macho (1.1.0) - ruby-progressbar (1.9.0) - rubyzip (1.2.1) - security (0.1.3) - signet (0.7.3) - addressable (~> 2.3) - faraday (~> 0.9) - jwt (~> 1.5) - multi_json (~> 1.10) - simplecov (0.15.1) - docile (~> 1.1.0) - json (>= 1.8, < 3) - simplecov-html (~> 0.10.0) - simplecov-html (0.10.2) - slack-notifier (1.5.1) - terminal-notifier (1.8.0) - terminal-table (1.8.0) - unicode-display_width (~> 1.1, >= 1.1.1) - thread_safe (0.3.6) - tty-screen (0.5.0) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uber (0.1.0) - unf (0.1.4) - unf_ext - unf_ext (0.0.7.4) - unicode-display_width (1.3.0) - word_wrap (1.0.0) - xcodeproj (1.5.2) - CFPropertyList (~> 2.3.3) - claide (>= 1.0.2, < 2.0) - colored2 (~> 3.1) - nanaimo (~> 0.2.3) - xcpretty (0.2.8) - rouge (~> 2.0.7) - xcpretty-travis-formatter (0.0.4) - xcpretty (~> 0.2, >= 0.0.7) - -PLATFORMS - ruby - -DEPENDENCIES - bundler - cocoapods - fastlane (>= 2.26.1) - fastlane-plugin-branch! - pry - rake - rspec - rspec-simplecov - rubocop - simplecov - -BUNDLED WITH - 1.15.4 diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 1732768..0000000 --- a/circle.yml +++ /dev/null @@ -1,9 +0,0 @@ -test: - override: - - bundle exec rake -machine: - ruby: - version: 2.4.2 -# Enable xcode below if you need macOS -# xcode: -# version: "8.3" diff --git a/fastlane-plugin-branch.gemspec b/fastlane-plugin-branch.gemspec index 17e85b1..72398eb 100644 --- a/fastlane-plugin-branch.gemspec +++ b/fastlane-plugin-branch.gemspec @@ -25,8 +25,9 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'bundler' spec.add_development_dependency 'rspec' spec.add_development_dependency 'rake' + spec.add_development_dependency 'rspec_junit_formatter' spec.add_development_dependency 'rspec-simplecov' - spec.add_development_dependency 'rubocop' + spec.add_development_dependency 'rubocop', '~> 0.50.0' spec.add_development_dependency 'simplecov' spec.add_development_dependency 'fastlane', '>= 2.26.1' end