Skip to content

Commit

Permalink
Merge pull request #1 from evkhramkov/azure-pipelines
Browse files Browse the repository at this point in the history
Set up CI with Azure Pipelines
  • Loading branch information
evkhramkov authored Nov 19, 2018
2 parents 45405cc + 594167e commit 4505b05
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ Metrics/ModuleLength:
Enabled: false

# certificate_1 is an okay variable name
Style/VariableNumber:
Naming/VariableNumber:
Enabled: false

# This is used a lot across the fastlane code base for config files
Style/MethodMissing:
Style/MethodMissingSuper:
Enabled: false
Style/MissingRespondToMissing:
Enabled: false

#
Expand Down Expand Up @@ -76,14 +78,14 @@ Lint/UselessAssignment:
- '**/spec/**/*'

# We could potentially enable the 2 below:
Style/IndentHash:
Layout/IndentHash:
Enabled: false

Style/AlignHash:
Layout/AlignHash:
Enabled: false

# HoundCI doesn't like this rule
Style/DotPosition:
Layout/DotPosition:
Enabled: false

# We allow !! as it's an easy way to convert ot boolean
Expand All @@ -95,7 +97,7 @@ Style/SymbolArray:
Enabled: false

# We still support Ruby 2.0.0
Style/IndentHeredoc:
Layout/IndentHeredoc:
Enabled: false

# This cop would not work fine with rspec
Expand Down Expand Up @@ -204,15 +206,15 @@ Lint/ParenthesesAsGroupedExpression:

# This would reject is_ in front of methods
# We use `is_supported?` everywhere already
Style/PredicateName:
Naming/PredicateName:
Enabled: false

# We allow the $
Style/PerlBackrefs:
Enabled: false

# Disable '+ should be surrounded with a single space' for xcodebuild_spec.rb
Style/SpaceAroundOperators:
Layout/SpaceAroundOperators:
Exclude:
- '**/spec/actions_specs/xcodebuild_spec.rb'

Expand All @@ -224,7 +226,7 @@ AllCops:
- './vendor/**/*'

# They have not to be snake_case
Style/FileName:
Naming/FileName:
Exclude:
- 'fastlane-plugin-appcenter.gemspec'
- '**/Dangerfile'
Expand Down Expand Up @@ -254,4 +256,4 @@ Style/IfInsideElse:

# Sometimes we just want to 'collect'
Style/CollectionMethods:
Enabled: false
Enabled: false
20 changes: 20 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Ruby
# Package your Ruby project.
# Add steps that install rails, analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/ruby

pool:
vmImage: 'Ubuntu 16.04'

steps:
- task: UseRubyVersion@0
inputs:
versionSpec: '>= 2.5'

- script: |
gem install bundler
bundle install --retry=3 --jobs=4
displayName: 'bundle install'

- script: bundle exec rake
displayName: 'bundle exec rake'

0 comments on commit 4505b05

Please sign in to comment.