This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
appveyor.yml
56 lines (46 loc) · 2.09 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
version: "{build}"
# Make sure we always have RDP details
init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Build 6.2 and 6.3
environment:
matrix:
- SPLUNK_VERSION: 7.0.1
SPLUNK_BUILD: 2b5b15c4ee89
SDK_APP_VERSION: 1.0.0
- SPLUNK_VERSION: 7.2.0
SPLUNK_BUILD: 8c86330ac18
SDK_APP_VERSION: 1.0.0
install:
# Download Splunk and the SDK App
- cmd: appveyor DownloadFile https://download.splunk.com/products/splunk/releases/%SPLUNK_VERSION%/splunk/windows/splunk-%SPLUNK_VERSION%-%SPLUNK_BUILD%-windows-64.zip -FileName C:\splunk.zip
- cmd: appveyor DownloadFile https://github.com/splunk/sdk-app-collection/archive/%SDK_APP_VERSION%.zip -FileName C:\sdkapp.zip
# Unzip It
- cmd: 7z x C:\splunk.zip -oc:\splunk > NUL
- cmd: 7z x C:\sdkapp.zip -oc:\splunk\splunk\etc\apps > NUL
# Unzip it, rename it, and make sure it's installed
- cmd: rename c:\splunk\splunk\etc\apps\sdk-app-collection-%SDK_APP_VERSION% sdk-app-collection
- cmd: dir c:\splunk\splunk\etc\apps
# temp workaround to resolve tsl1.2 not supported by .net, downgrade splunk to use tsl1.0
- cmd: type ci\server_ssl.conf >> C:\splunk\splunk\etc\system\local\server.conf
# Create admin:changme user
- cmd: type ci\user-seed.conf >> C:\splunk\splunk\etc\system\local\user-seed.conf
# Install the Splunk service and start it
- cmd: cmd /C "set PATH=C:\splunk\splunk && C:\splunk\splunk\bin\splunk.exe enable boot-start"
- cmd: cmd /C "set PATH=C:\splunk\splunk && C:\splunk\splunk\bin\splunk.exe start --accept-license --answer-yes --no-prompt"
before_build:
# Restore our nuget packages
- cmd: nuget restore
# Set our timezone correctly
- cmd: time /t
- cmd: tzutil /s "Pacific Standard Time"
- cmd: time /t
build:
verbosity: minimal
# Avoid test failures from debug assertions by building in release mode
configuration:
- Release
test_script:
# Run the unit tests and acceptance tests
- ps: xunit.console.clr4.x86 test\unit-tests\bin\Release\unit-tests.dll /appveyor
- ps: xunit.console.clr4.x86 test\acceptance-tests\bin\Release\acceptance-tests.dll /appveyor