forked from getgauge/gauge-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
61 lines (42 loc) · 1.64 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
57
58
59
60
61
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
install:
- git submodule init
- git submodule update
- ps: Install-Product node 10
- npm install
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
npm version
npm test
if ($LastExitCode -ne 0) {
$host.SetShouldExit($LastExitCode)
}
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
cd $env:APPVEYOR_BUILD_FOLDER
npm run installPlugin
cd gauge-tests
gauge -v
gauge config gauge_repository_url https://raw.githubusercontent.com/getgauge/gauge-nightly-repository/master/
gauge install
gauge -v
- gradlew.bat clean jsFT