-
Notifications
You must be signed in to change notification settings - Fork 143
/
.appveyor.yml
40 lines (40 loc) · 2.02 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
image: Visual Studio 2022
configuration: Release
platform: Any CPU
environment:
JAVA_HOME: '%ProgramFiles%\Java\jdk1.8.0'
GRADLE_OPTS: '-Dorg.gradle.internal.launcher.welcomeMessageEnabled=false -Dorg.gradle.daemon=false'
GeneratePackageOnBuild: true
cache:
- '%ProgramData%\chocolatey\bin -> .appveyor.yml'
- '%ProgramData%\chocolatey\lib -> .appveyor.yml'
- DotNet\packages -> DotNet\**\packages.config
- '%LocalAppData%\NuGet\v3-cache'
- '%UserProfile%\.gradle\wrapper -> Java\gradle\wrapper\gradle-wrapper.properties'
install:
- choco install -y --no-progress gitversion.portable
before_build:
- cmd: nuget restore DotNet\CesiumLanguageWriter.sln
- ps: gitversion /l console /output buildserver /updateprojectfiles DotNet
build:
project: DotNet\CesiumLanguageWriter.sln
parallel: true
verbosity: minimal
after_build:
- ps: |
gci DotNet\CesiumLanguageWriter\bin\$env:Configuration\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
(gc Java\gradle.properties) | % { $_ -replace "^version = .*$", "version = $env:GitVersion_NuGetVersion" } | sc Java\gradle.properties
.\Java\gradlew.bat -p Java assemble
gci Java\CesiumLanguageWriter\build\libs\*.jar | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
test_script:
- cmd: nunit3-console DotNet\CesiumLanguageWriterTests\bin\%Configuration%\CesiumLanguageWriterTests.dll --result=nunit-results.xml;format=AppVeyor
after_test:
- ps: |
7z a ValidationDotNet.zip (gci DotNet -Recurse -Include ValidationDocument.czml,ValidationDocument*.js).FullName
Push-AppveyorArtifact ValidationDotNet.zip
.\Java\gradlew.bat -p Java check
$wc = New-Object System.Net.WebClient
$url = "https://ci.appveyor.com/api/testresults/junit/$env:APPVEYOR_JOB_ID"
gci Java\CesiumLanguageWriterTests\build\test-results\test\*.xml | % { $wc.UploadFile($url, $_) }
7z a ValidationJava.zip (gci Java -Recurse -Include ValidationDocument.czml,ValidationDocument*.js).FullName
Push-AppveyorArtifact ValidationJava.zip