Skip to content
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

move building and testing to Azure DevOps #2

Open
wants to merge 8 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
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
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

34 changes: 34 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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'

- script: 'rake install'
displayName: 'generate gem'

- task: CopyFiles@2
displayName: 'copy generated gem to artifacts folder'
inputs:
Contents: 'pkg/**'
TargetFolder: '$(build.artifactstagingdirectory)'

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: fastlane-plugin-appcenter.gem'
inputs:
ArtifactName: 'fastlane-plugin-appcenter'
9 changes: 0 additions & 9 deletions circle.yml

This file was deleted.