-
Notifications
You must be signed in to change notification settings - Fork 90
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
1 parent
393cee3
commit d1612ca
Showing
1 changed file
with
51 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,51 @@ | ||
version: "master-{build}" | ||
|
||
os: Windows Server 2012 R2 | ||
platform: | ||
- x64 | ||
|
||
environment: | ||
winrm_user: test_user | ||
winrm_pass: Pass@word1 | ||
|
||
matrix: | ||
- ruby_version: "21" | ||
winrm_endpoint: http://localhost:5985/wsman | ||
|
||
- ruby_version: "21" | ||
winrm_auth_type: ssl | ||
winrm_endpoint: https://localhost:5986/wsman | ||
winrm_no_ssl_peer_verification: true | ||
|
||
- ruby_version: "21" | ||
winrm_auth_type: ssl | ||
winrm_endpoint: https://localhost:5986/wsman | ||
use_ssl_peer_fingerprint: true | ||
|
||
clone_folder: c:\projects\winrm | ||
clone_depth: 1 | ||
branches: | ||
only: | ||
- master | ||
|
||
install: | ||
- ps: net user /add $env:winrm_user $env:winrm_pass | ||
- ps: net localgroup administrators $env:winrm_user /add | ||
- ps: $env:winrm_cert = (New-SelfSignedCertificate -DnsName localhost -CertStoreLocation cert:\localmachine\my).Thumbprint | ||
- ps: winrm create winrm/config/Listener?Address=*+Transport=HTTPS "@{Hostname=`"localhost`";CertificateThumbprint=`"$($env:winrm_cert)`"}" | ||
- ps: winrm set winrm/config/client/auth '@{Basic="true"}' | ||
- ps: winrm set winrm/config/service/auth '@{Basic="true"}' | ||
- ps: winrm set winrm/config/service '@{AllowUnencrypted="true"}' | ||
- ps: $env:PATH="C:\Ruby$env:ruby_version\bin;$env:PATH" | ||
- ps: Write-Host $env:PATH | ||
- ps: ruby --version | ||
- ps: gem --version | ||
- ps: gem install bundler --quiet --no-ri --no-rdoc | ||
- ps: bundler --version | ||
|
||
build_script: | ||
- bundle install | ||
|
||
test_script: | ||
- SET SPEC_OPTS=--format progress | ||
- bundle exec rake lint |