-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.appveyor.yml
54 lines (48 loc) · 1.45 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
version: '{build}'
image: Visual Studio 2022
environment:
nodejs_version: 16
matrix:
- TARGET: dotnet
UNO_TEST_ARGS: -DLAZY
LOG_TRACE: 1
- TARGET: native
UNO_TEST_ARGS: -DDEBUG_UNSAFE
SKIP_UNO_TESTS: 1
LOG_TRACE: 1
# - TARGET: android
# UNO_TEST_ARGS: -DDEBUG_UNSAFE --build-only
# GRADLE_OPTS: -Dorg.gradle.daemon=false
# SKIP_LIB_TESTS: 1
# LOG_TRACE: 1
install:
- ps: Install-Product node $env:nodejs_version
- ps: |
if ($env:TARGET -eq "android") {
Invoke-Expression "npm install [email protected] -g"
}
- ps: |
if ($env:TARGET -eq "native") {
Invoke-WebRequest https://www.nuget.org/api/v2/package/mesa3d-x64/18.3.4 -OutFile mesa.zip
Expand-Archive mesa.zip mesa
}
- npm install
build_script:
- npm pack --silent
- dotnet build disasm.sln /clp:ErrorsOnly
after_build:
- ps: |
if ($env:TARGET -eq "dotnet") {
Push-AppveyorArtifact "fuse-open-uno-*.tgz"
}
before_test:
- ps: |
if ($env:TARGET -eq "native") {
Get-ChildItem -Path lib -Recurse -Include *Test.unoproj | Select-Object -ExpandProperty DirectoryName | Foreach-Object {
$buildDir = Join-Path $_ build\test\$env:TARGET
New-Item -Force -ItemType directory -Path $buildDir | Out-Null
Copy-Item -Path mesa\opengl32.dll -Destination (Join-Path $buildDir opengl32.dll)
}
}
test_script:
- npm run test-with-timeout -- %TARGET% Release