Welcome to mirror list, hosted at ThFree Co, Russian Federation.

run_windows_tests.ps1 « ci - gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fbeb2de56d6aafe140a842ae2ddf760cc0a3206e (plain)
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
$env:ErrorActionPreference='Stop'

# List of all the crates we want to build
# We need to do this manually to avoid trying
# to build the ones which can't work on windows
[string[]] $crates = @(
    # Same as default-members in Cargo.toml
    "tutorial",
    "version-helper",
    "audio/audiofx",
    "audio/claxon",
    "audio/lewton",
    "generic/file",
    "generic/fmp4",
    "generic/threadshare",
    "net/onvif",
    "net/raptorq",
    "net/reqwest",
    "net/aws",
    "utils/fallbackswitch",
    "utils/togglerecord",
    "utils/tracers",
    "utils/uriplaylistbin",
    "video/cdg",
    "video/ffv1",
    "video/flavors",
    "video/gif",
    "video/rav1e",
    "video/rspng",
    "video/hsv",
    "text/ahead",
    "text/wrap",
    "text/json",
    "text/regex",

    # Extra crates that can be built
    # "audio/csound",
    "audio/spotify",
    "generic/sodium",
    "net/hlssink3",
    "video/closedcaption",
    "video/dav1d",
    "video/gtk4",
    "video/videofx"
    # "video/webp",
)

foreach($crate in $crates)
{
    Write-Host "Building crate: $crate"
    Write-Host "Features: $env:FEATURES"
    $env:LocalFeatures = $env:FEATURES

    Write-Host "with features: $env:LocalFeatures"
    cargo build --color=always --manifest-path $crate/Cargo.toml --all-targets $env:LocalFeatures

    if (!$?) {
        Write-Host "Failed to build crate: $crate"
        Exit 1
    }

    $env:G_DEBUG="fatal_warnings"
    cargo test --no-fail-fast --color=always --manifest-path $crate/Cargo.toml --all-targets $env:LocalFeatures

    if (!$?) {
        Write-Host "Tests failed to for crate: $crate"
        Exit 1
    }
}