-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathappveyor.yml
More file actions
40 lines (31 loc) · 1.01 KB
/
appveyor.yml
File metadata and controls
40 lines (31 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
image: Visual Studio 2017
cache:
- vendor/bundle
branches:
only:
- master
environment:
matrix:
- RUBY_VERSION: "25-x64"
# scripts that are called at very beginning, before repo cloning
init:
- ps: Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem -Name LongPathsEnabled -Value 1 -Type DWord
matrix:
fast_finish: false
install:
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
- bundle config --local path vendor/bundle
- bundle install
build: "off"
before_test:
- ruby -v
- gem -v
- bundle -v
test_script:
- ps: New-Item -ItemType Directory -Force -Path C:/ProgramData/PuppetLabs/puppet/etc
- ps: New-Item -ItemType File C:/ProgramData/PuppetLabs/puppet/etc/puppet.conf
- ps: Write-Host $env:APPVEYOR_BUILD_FOLDER
- ps: Write-Host (get-item $env:APPVEYOR_BUILD_FOLDER).parent.FullName
- ps: bundle exec puppet config set basemodulepath (get-item $env:APPVEYOR_BUILD_FOLDER).parent.FullName
- ps: $env:TARGET_HOST="localhost"; bundle exec rspec spec/acceptance