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