From d1612ca08b0a43c7653ebe6da72d36b3b6ed8707 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Fri, 22 Jan 2016 10:30:23 +0100 Subject: [PATCH] add appveyor thanks @mwrock --- appveyor.yml | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..825de813 --- /dev/null +++ b/appveyor.yml @@ -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