-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
47 lines (38 loc) · 1.16 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
version: 1.0.{build}
init:
- ps: choco install gauge
install:
- ps: >-
$gauge=$env:ProgramFiles + "\gauge\bin\gauge.exe"
&$gauge install
if(!(Test-Path .\activeadmin-demo.war)) { wget "https://bintray.com/artifact/download/gauge/activeadmin-demo/activeadmin-demo.war" -Outfile .\activeadmin-demo.war }
Start-Process "java" -ArgumentList "-jar", ".\activeadmin-demo.war" | Out-Null
sleep 30
cache:
- packages
- .\activeadmin-demo.war
- '%APPDATA%\gauge\plugins'
build: off
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/68b514dcb2c08a6a5809
method: POST
on_build_success: true
on_build_failure: true
on_build_status_changed: true
test_script:
- ps: >-
nuget restore
$gauge=$env:ProgramFiles+"\gauge\bin\gauge.exe"
&$gauge run specs
echo "done!"
artifacts:
- path: reports/html-reportreport
name: gauge-reports
- path: failure_reports/html-report
name: gauge-reports-failure
on_finish:
- ps: >-
# upload results to AppVeyor
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\reports\xml-report\result.xml))