summaryrefslogtreecommitdiffstats
path: root/taskcluster/ci/snap-upstream-test/kind.yml
blob: 585a1fca1f5e8449e18ac6c7a55af621c0981395 (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
70
71
72
73
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: gecko_taskgraph.loader.transform:loader

only-for-attributes:
    - build_platform

transforms:
    - taskgraph.transforms.from_deps
    - gecko_taskgraph.transforms.job
    - gecko_taskgraph.transforms.task
    - gecko_taskgraph.transforms.snap_test

kind-dependencies:
    - snap-upstream-build

job-defaults:
    attributes:
        retrigger: true
        cron: true
    treeherder:
        kind: test
        tier: 2
    run:
        using: run-task
        checkout: false
    worker:
        max-run-time: 900
        env:
            WAYLAND_DISPLAY: 'wayland-0'
        artifacts:
            - name: public/build
              type: directory
              path: builds/worker/artifacts/

jobs:
    basic:
        from-deps:
            group-by: single-with-filters
        description: Runs basic tests on a Firefox Snap package
        worker-type: t-linux-wayland
        run:
            command: >-
              export TASKCLUSTER_ROOT_DIR=$PWD && cd $MOZ_FETCHES_DIR/ && ./tests.sh --basic
        fetches:
            snap-upstream-build:
                - firefox.snap
                - snap-tests.zip
        treeherder:
            platform: linux64/opt
            symbol: Sel(basic)
        attributes:
            snap_test_type: basic

    qa:
        from-deps:
            group-by: single-with-filters
        description: Runs some QA tests on a Firefox Snap package
        worker-type: t-linux-wayland
        run:
            command: >-
              export TASKCLUSTER_ROOT_DIR=$PWD && cd $MOZ_FETCHES_DIR/ && ./tests.sh --qa
        fetches:
            snap-upstream-build:
                - firefox.snap
                - snap-tests.zip
        treeherder:
            platform: linux64/opt
            symbol: Sel(QA)
        attributes:
            snap_test_type: qa