Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 1 | --- |
| 2 | # xos-gui unit test |
| 3 | |
| 4 | - job-template: |
| 5 | id: 'gui-unit-test' |
Kailash Khalasi | 8601af3 | 2018-05-17 18:17:11 -0700 | [diff] [blame] | 6 | name: 'verify_{project}_unit-test' |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 7 | |
| 8 | description: | |
Kailash Khalasi | 8601af3 | 2018-05-17 18:17:11 -0700 | [diff] [blame] | 9 | Created by {id} job-template from ci-management/jjb/gui-unit.yaml <br /> |
| 10 | Test for the new XOS GUI Single Page Application based on Angular |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 11 | |
| 12 | triggers: |
| 13 | - cord-infra-gerrit-trigger-patchset: |
| 14 | gerrit-server-name: '{gerrit-server-name}' |
| 15 | project-regexp: '^{project}$' |
| 16 | branch-regexp: '{branch-regexp}' |
| 17 | dependency-jobs: '{dependency-jobs}' |
| 18 | file-include-regexp: '{all-files-regexp}' |
| 19 | |
| 20 | properties: |
| 21 | - cord-infra-properties: |
| 22 | build-days-to-keep: '{build-days-to-keep}' |
| 23 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 24 | |
Zack Williams | 5882d6c | 2018-04-13 15:22:46 -0700 | [diff] [blame] | 25 | # `npm install` can take >10m depending on connectivity |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 26 | wrappers: |
| 27 | - lf-infra-wrappers: |
Zack Williams | 5882d6c | 2018-04-13 15:22:46 -0700 | [diff] [blame] | 28 | build-timeout: 20 |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 29 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 30 | |
| 31 | scm: |
| 32 | - lf-infra-gerrit-scm: |
| 33 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 34 | refspec: '$GERRIT_REFSPEC' |
| 35 | branch: '$GERRIT_BRANCH' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 36 | submodule-disable: '{submodule-disable}' |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 37 | submodule-recursive: 'false' |
Zack Williams | ccc1474 | 2020-01-22 13:15:59 -0700 | [diff] [blame] | 38 | submodule-timeout: '{submodule-timeout}' |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 39 | choosing-strategy: gerrit |
| 40 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 41 | |
Zack Williams | 194405d | 2018-04-16 13:28:45 -0700 | [diff] [blame] | 42 | # `npm install` fails on 1Gb RAM |
Hung-Wei Chiu | f6cbde2 | 2021-04-22 22:15:23 -0700 | [diff] [blame] | 43 | node: 'ubuntu18.04-basebuild-1c-2g' |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 44 | project-type: freestyle |
| 45 | concurrent: true |
| 46 | |
Zack Williams | 31add08 | 2018-04-13 13:27:17 -0700 | [diff] [blame] | 47 | builders: |
| 48 | - shell: | |
| 49 | #/usr/bin/env bash |
| 50 | set -eu -o pipefail |
Zack Williams | 5882d6c | 2018-04-13 15:22:46 -0700 | [diff] [blame] | 51 | time npm install |
Zack Williams | 31add08 | 2018-04-13 13:27:17 -0700 | [diff] [blame] | 52 | npm run lint |
| 53 | npm test |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 54 | |