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 | |
Zack Williams | 194405d | 2018-04-16 13:28:45 -0700 | [diff] [blame] | 39 | # `npm install` fails on 1Gb RAM |
| 40 | node: 'ubuntu16.04-basebuild-1c-2g' |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 41 | project-type: freestyle |
| 42 | concurrent: true |
| 43 | |
Zack Williams | 31add08 | 2018-04-13 13:27:17 -0700 | [diff] [blame] | 44 | builders: |
| 45 | - shell: | |
| 46 | #/usr/bin/env bash |
| 47 | set -eu -o pipefail |
Zack Williams | 5882d6c | 2018-04-13 15:22:46 -0700 | [diff] [blame] | 48 | time npm install |
Zack Williams | 31add08 | 2018-04-13 13:27:17 -0700 | [diff] [blame] | 49 | npm run lint |
| 50 | npm test |
Zack Williams | 93baebf | 2018-04-13 12:35:35 -0700 | [diff] [blame] | 51 | |