forked from getgauge/gauge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
46 lines (32 loc) · 1.46 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
version: 1.0.{build}
clone_folder: c:\gopath\src\github.com\getgauge\gauge
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")
}
environment:
GOPATH: c:\gopath
GAUGE_PREFIX: c:\gauge
GAUGE_TELEMETRY_ENABLED: false
before_build:
- ps: $env:Path = $env:GAUGE_PREFIX + "\bin;" + [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
build_script:
- ps: >-
go run build\make.go
if ($LastExitCode -ne 0) { throw "Gauge Build failed" }
go run build\make.go --test
if ($LastExitCode -ne 0) { throw "Gauge Test failed" }
after_build:
- ps: go run build\make.go --install --prefix=$env:GAUGE_PREFIX
test_script:
- ps: >-
git clone --depth=1 https://github.com/getgauge/gauge-tests ../gauge-tests
cd ../gauge-tests
gauge config gauge_repository_url https://raw.githubusercontent.com/getgauge/gauge-nightly-repository/master/
gauge install
gauge -v
mvn clean install -q -Denv=ci-java -Dtags="java" -DinParallel=true
if ($LastExitCode -ne 0) { throw "Gauge Functional Tests failed" }