summaryrefslogtreecommitdiff
path: root/.zuul.d/nodejs-jobs.yaml
blob: 86586275bc728f8f9ed8f7e598cd04be995dd32b (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
- job:
    name: horizon-nodejs10-run-lint
    parent: nodejs-run-lint
    description: |
      Run lint using Node 10 for horizon plugins.
    vars:
      node_version: 10
      tox_constraints_file: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
      # NOTE: This is stable branch (<=stable/zed) job and new tox 4
      # require some changes in tox.ini to be compatible with it. Let's
      # pin tox <4 for stable branches testing (<=stable/zed).
      ensure_tox_version: '<4'
    nodeset: ubuntu-focal
    pre-run: playbooks/horizon-nodejs/pre.yaml
    required-projects:
      - openstack/horizon
      - openstack/requirements

- job:
    name: horizon-nodejs10-run-test
    parent: nodejs-run-test-browser
    description: |
      Run test using Node 10 for horizon plugins.
    vars:
      node_version: 10
      tox_constraints_file: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
      # NOTE: This is stable branch (<=stable/zed) job and new tox 4
      # require some changes in tox.ini to be compatible with it. Let's
      # pin tox <4 for stable branches testing (<=stable/zed).
      ensure_tox_version: '<4'
    pre-run: playbooks/horizon-nodejs/pre.yaml
    nodeset: ubuntu-focal
    required-projects:
      - openstack/horizon
      - openstack/requirements

- project-template:
    name: horizon-nodejs10-jobs
    description: |
      Run lint and test jobs using Node 10 (LTS) for horizon plugins.
    check:
      jobs:
        - horizon-nodejs10-run-lint
        - horizon-nodejs10-run-test
    gate:
      jobs:
        - horizon-nodejs10-run-lint
        - horizon-nodejs10-run-test

- project-template:
    name: horizon-nodejs10-jobs-nonvoting
    description: |
      Run lint and test jobs using Node 10 (LTS) for horizon plugins.
    check:
      jobs:
        - horizon-nodejs10-run-lint:
            voting: false
        - horizon-nodejs10-run-test:
            voting: false