forked from wpilibsuite/vscode-wpilib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
113 lines (85 loc) · 2.25 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '{branch}-{build}'
pull_requests:
do_not_increment_build_number: true
branches:
only:
- master
skip_branch_with_pr: true
image: Visual Studio 2017
init:
- ps: Install-Product node $env:nodejs_version
environment:
nodejs_version: 8
install:
- ps: >-
If (Test-Path Env:APPVEYOR_REPO_TAG_NAME) {
./gradlew clean -PjenkinsBuild -PreleaseType=DEV --continue --no-daemon
} Else {
./gradlew clean -PjenkinsBuild --continue --no-daemon
}
cache: C:\Users\appveyor\.gradle
build_script:
- ps: >-
If (Test-Path Env:APPVEYOR_REPO_TAG_NAME) {
./gradlew build updateVersions updateAllDependencies -PjenkinsBuild -PreleaseType=DEV --continue --no-daemon
} Else {
./gradlew build updateVersions updateAllDependencies -PjenkinsBuild --continue --no-daemon
}
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
cd vscode-wpilib
npm install
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
npm run lint
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
npm run unittest
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
npm run gulp
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
npm run webpack
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
npm run vscePackage
if ($lastexitcode -eq 0) {
echo $lastexitcode
} else {
throw ("Exec: " + $errorMessage)
}
cd ..
cd wpilib-utility-standalone
npm install
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
npm run lint
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
npm run compile
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
npm run packageWindows
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
7z a WPILibStandalone.zip $env:APPVEYOR_BUILD_FOLDER\\wpilib-utility-standalone\\build\\wpilibutility-win32-ia32\\*
if ($lastexitcode -ne 0) {
throw ("Exec: " + $errorMessage)
}
test: off
artifacts:
- path: '**/*.vsix'
name: VSIX
- path: '**/WPILibStandalone.zip'
name: Standalone