-
Notifications
You must be signed in to change notification settings - Fork 15
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
Showing
7 changed files
with
154 additions
and
29 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
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
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
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,82 @@ | ||
--- | ||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- master | ||
- smurawski/azure-pipelines | ||
pr: | ||
autoCancel: true | ||
branches: | ||
include: | ||
- master | ||
|
||
stages: | ||
- stage: Build | ||
jobs: | ||
- job: Validate | ||
strategy: | ||
matrix: | ||
Windows_Ruby25: | ||
version: 2.5.3 | ||
imageName: 'windows-2019' | ||
task: windows_ci.bat | ||
Windows_Ruby26: | ||
version: 2.6.1 | ||
imageName: 'windows-2019' | ||
task: windows_ci.bat | ||
Windows_Integration: | ||
version: 2.6.1 | ||
imageName: 'windows-2019' | ||
task: windows_integration.bat | ||
machine_user: test_user | ||
machine_pass: Pass@word1 | ||
machine_port: 5985 | ||
KITCHEN_YAML: kitchen.appveyor.yml | ||
pool: | ||
vmImage: $(imageName) | ||
steps: | ||
- task: UseRubyVersion@0 | ||
inputs: | ||
versionSpec: $(version) | ||
addToPath: true | ||
- script: | | ||
echo "ruby version:" | ||
ruby --version | ||
echo "gem version:" | ||
gem --version | ||
displayName: Show Ruby Version | ||
- script: | | ||
gem install bundler --quiet | ||
echo "bundler version:" | ||
bundler --version | ||
displayName: Install Bundler | ||
- script: | | ||
bundle install || bundle install || bundle install | ||
displayName: Bundle Install Dependencies | ||
- script: | | ||
./support/ci/$(task) | ||
displayName: Run Tests | ||
env: | ||
SPEC_OPTS: --format progress | ||
- job: Package | ||
dependsOn: Validate | ||
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master'), notIn(variables['Build.Reason'], 'PullRequest')) | ||
pool: | ||
imageName: 'ubuntu-16.04' | ||
steps: | ||
- task: UseRubyVersion@0 | ||
inputs: | ||
versionSpec: 2.6.2 | ||
addToPath: true | ||
- script: | | ||
gem install bundler --quiet | ||
bundle install || bundle install || bundle install | ||
bundle exec rake build | ||
displayName: Package Gem | ||
- task: PublishBuildArtifacts@1 | ||
displayName: "Publish Artifact: Release Build" | ||
inputs: | ||
PathtoPublish: ./pkg | ||
ArtifactName: gem | ||
ArtifactType: Container |
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
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 @@ | ||
bundle exec rake unit && bundle exec rake quality |
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 @@ | ||
winrm.cmd quickconfig -q | ||
net user /add %machine_user% %machine_pass% | ||
net localgroup administrators %machine_user% /add | ||
bundle install --with integration | ||
bundle exec kitchen verify windows |