Skip to content

Commit

Permalink
add appveyor thanks @mwrock
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Jan 22, 2016
1 parent 393cee3 commit d1612ca
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions appveyor.yml
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

0 comments on commit d1612ca

Please sign in to comment.