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' |
| 6 | name: 'verify_{project}_gui-unit-test' |
| 7 | |
| 8 | description: | |
| 9 | Created by gui-unit-tests job-template from ci-management/jjb/gui-unit.yaml |
| 10 | |
| 11 | triggers: |
| 12 | - cord-infra-gerrit-trigger-patchset: |
| 13 | gerrit-server-name: '{gerrit-server-name}' |
| 14 | project-regexp: '^{project}$' |
| 15 | branch-regexp: '{branch-regexp}' |
| 16 | dependency-jobs: '{dependency-jobs}' |
| 17 | file-include-regexp: '{all-files-regexp}' |
| 18 | |
| 19 | properties: |
| 20 | - cord-infra-properties: |
| 21 | build-days-to-keep: '{build-days-to-keep}' |
| 22 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 23 | |
Zack Williams | 5882d6c | 2018-04-13 15:22:46 -0700 | [diff] [blame] | 24 | # `npm install` can take >10m depending on connectivity |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 25 | wrappers: |
| 26 | - lf-infra-wrappers: |
Zack Williams | 5882d6c | 2018-04-13 15:22:46 -0700 | [diff] [blame] | 27 | build-timeout: 20 |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 28 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 29 | |
| 30 | scm: |
| 31 | - lf-infra-gerrit-scm: |
| 32 | git-url: '$GIT_URL/$GERRIT_PROJECT' |
| 33 | refspec: '$GERRIT_REFSPEC' |
| 34 | branch: '$GERRIT_BRANCH' |
| 35 | submodule-recursive: 'false' |
| 36 | choosing-strategy: gerrit |
| 37 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 38 | |
| 39 | node: '{build-node}' |
| 40 | project-type: freestyle |
| 41 | concurrent: true |
| 42 | |
Zack Williams | 31add08 | 2018-04-13 13:27:17 -0700 | [diff] [blame] | 43 | builders: |
| 44 | - shell: | |
| 45 | #/usr/bin/env bash |
| 46 | set -eu -o pipefail |
Zack Williams | 5882d6c | 2018-04-13 15:22:46 -0700 | [diff] [blame] | 47 | time npm install |
Zack Williams | 31add08 | 2018-04-13 13:27:17 -0700 | [diff] [blame] | 48 | npm run lint |
| 49 | npm test |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 50 | |