forked from fuse-open/uno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
52 lines (46 loc) · 1.44 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
version: '{build}'
image: Visual Studio 2019
environment:
nodejs_version: 14
matrix:
- TARGET: dotnet
- TARGET: native
UNO_TEST_ARGS: -DDEBUG_UNSAFE
SKIP_UNO_TESTS: 1
# - TARGET: android
# UNO_TEST_ARGS: -DDEBUG_UNSAFE --build-only
# GRADLE_OPTS: -Dorg.gradle.daemon=false
# SKIP_LIB_TESTS: 1
install:
- ps: Install-Product node $env:nodejs_version
- ps: |
if ($env:TARGET -eq "android") {
Invoke-Expression "npm install android-build-tools@1.x -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
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\$env:TARGET\test
New-Item -Force -ItemType directory -Path $buildDir | Out-Null
Copy-Item -Path mesa\opengl32.dll -Destination (Join-Path $buildDir opengl32.dll)
}
}
test_script:
- nunit3-console
src\test\tests\bin\Release\Uno.TestRunner.Tests.dll
src\ux\tests\bin\Release\Uno.UX.Markup.Tests.dll
- npm test %TARGET%