forked from getgauge/gauge-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
52 lines (37 loc) · 1.63 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
version: 1.0.{build}
init:
- ps: >-
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")
}
cache:
- C:\maven\
- C:\Users\appveyor\.m2
environment:
GAUGE_TELEMETRY_ENABLED: false
GAUGE_PREFIX: C:\Program Files\Gauge\bin
build_script:
- ps: >-
$env:Path="$env:ProgramFiles\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
go run make.go
if ($LastExitCode -ne 0) { throw "Build failed" }
go run make.go --install
git clone --depth=1 https://github.com/getgauge/gauge-tests
cd gauge-tests
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
gauge config gauge_repository_url https://raw.githubusercontent.com/getgauge/gauge-nightly-repository/master/
gauge install
gauge -v
mvn -q clean install -Denv=ci-java -DinParallel=false
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/68b514dcb2c08a6a5809
method: POST
on_build_failure: true
on_build_status_changed: true