Sha256: 964d6e43e0fcb8c6661aef545a6254d88ab76ae6e1a9bd88a3742fc3bc285e1e

Contents?: true

Size: 1.93 KB

Versions: 1

Compression:

Stored size: 1.93 KB

Contents

version: "master-{build}"

os: Windows Server 2012 R2
platform:
  - x64

environment:
  winrm_user: test_user
  winrm_password: Pass@word1
  user_cert: c:\projects\winrm\user.pem
  user_key: c:\projects\winrm\key.pem

  matrix:
    - ruby_version: "21"
      winrm_endpoint: http://localhost:5985/wsman

clone_folder: c:\projects\winrm
clone_depth: 1
branches:
  only:
    - master

install:
  - ps: net user /add $env:winrm_user $env:winrm_password
  - ps: net localgroup administrators $env:winrm_user /add
  - ps: $env:PATH="C:\OpenSSL-Win64\bin;$env:PATH"
  - ps: Import-Module c:\projects\winrm\WinrmAppveyor.psm1
  - ps: New-ClientCertificate $env:winrm_user c:\projects\winrm
  - ps: $env:user_cert_thumb = (Import-pfxCertificate -FilePath c:\projects\winrm\user.pfx -CertStoreLocation Cert:\LocalMachine\root).Thumbprint
  - ps: Import-pfxCertificate -FilePath c:\projects\winrm\user.pfx -CertStoreLocation Cert:\LocalMachine\TrustedPeople
  - 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/auth '@{Certificate="true"}'
  - ps: winrm set winrm/config/service/auth '@{CbtHardeningLevel="Strict"}'
  - ps: winrm set winrm/config/service '@{AllowUnencrypted="true"}'
  - ps: New-WinrmUserCertificateMapping $env:user_cert_thumb
  - 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 || bundle install || bundle install

test_script:
  - SET SPEC_OPTS=--format progress
  - bundle exec rake integration

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
winrm-2.1.0 appveyor.yml