forked from puppetlabs/puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
60 lines (55 loc) · 1.72 KB
/
appveyor.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: 4.1.0.{build}
clone_depth: 10
install:
build: off
matrix:
fast_finish: true
# Ruby versions under test
platform:
- Ruby23-x64
- Ruby21-x64
# Note that locales are mainly code page changes and are not the FULL set of localization
# changes that happen when you install French/Germam/Japanese etc. Windows
environment:
matrix:
- LOCALE: en-US
- LOCALE: ja-JP
before_test:
# Semicolons are required below. This renders as a single line powershell command in AppVeyor
- ps: >-
[string]$testLocale = [Environment]::GetEnvironmentVariable("LOCALE","Process");
$currentLocale = (Get-WinSystemLocale).Name;
if ($testLocale -ne '') {
if ($testLocale -ne $currentLocale) {
Write-Output "Setting Locale to $testLocale ...";
Set-WinSystemLocale ($testLocale);
Write-Output "Restarting worker in 5 seconds...";
Start-Sleep -Seconds 5
Restart-Computer -Force -Confirm:$false;
} else {
Write-Output "Locale is already set to $currentLocale";
};
} else {
Write-Output "LOCALE environment variable not set";
};
test_script:
# The sleep is needed to allow the Appveyor tracing to start correctly after a reboot (locale change)
- ps: Start-Sleep -Seconds 5
- SET
- chcp
- ps: Get-WinSystemLocale
- SET PATH=C:\%PLATFORM%\bin;%PATH%
- SET LOG_SPEC_ORDER=true
- bundle install --jobs 4 --retry 2 --without development extra
- type Gemfile.lock
- ruby -v
- bundle exec rake parallel:spec[2]
on_failure:
- appveyor PushArtifact .\spec_order.txt
notifications:
- provider: Email
to:
on_build_success: false
on_build_failure: false
on_build_status_changed: false