blob: 8b9a68ba72b81517b62ffecfaaee1409a53a78c8 [file] [log] [blame]
Zack Williams93baebf2018-04-13 12:35:35 -07001---
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 Williams5882d6c2018-04-13 15:22:46 -070024 # `npm install` can take >10m depending on connectivity
Zack Williams93baebf2018-04-13 12:35:35 -070025 wrappers:
26 - lf-infra-wrappers:
Zack Williams5882d6c2018-04-13 15:22:46 -070027 build-timeout: 20
Zack Williams93baebf2018-04-13 12:35:35 -070028 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 Williams31add082018-04-13 13:27:17 -070043 builders:
44 - shell: |
45 #/usr/bin/env bash
46 set -eu -o pipefail
Zack Williams5882d6c2018-04-13 15:22:46 -070047 time npm install
Zack Williams31add082018-04-13 13:27:17 -070048 npm run lint
49 npm test
Zack Williams93baebf2018-04-13 12:35:35 -070050