forked from getgauge/gauge-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
42 lines (38 loc) · 1.91 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
version: 1.0.{build}
environment:
GAUGE_PARALLEL: false
GAUGE_TELEMETRY_ENABLED: false
GAUGE_PREFIX: C:\Program Files\Gauge\bin
build_script:
- ps: |
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/getgauge/infrastructure/master/nightly_scripts/install_latest_gauge_nightly.ps1" -OutFile install_latest_gauge_nightly.ps1
.\install_latest_gauge_nightly.ps1
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven" )) {
(new-object System.Net.WebClient).DownloadFile('http://www.us.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip', 'C:\maven-bin.zip')
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
$env:Path = "c:\Program Files\Gauge\bin;C:\maven\apache-maven-3.3.9\bin;" + [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
Write-Host "PATH : $($env:PATH)"
$env:M2_HOME="C:\maven\apache-maven-3.3.9"
mvn --version
gauge version
echo "gauge_repository_url = https://raw.githubusercontent.com/getgauge/gauge-nightly-repository/master/" | Out-File $Env:AppData'\Gauge\config\gauge.properties' -Encoding utf8 -Append
.\build.cmd BuildInstallFT
test: off
artifacts:
- path: .\gauge-tests\reports-csharp\html-report
name: html-report
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
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 TestResults.xml))
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\gauge-tests\reports-csharp\xml-report\result.xml))