blob: 9c9e30f9c6d0f724a9721bcff06ec46b1dcba123 [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
Zack Williams194405d2018-04-16 13:28:45 -070039 # `npm install` fails on 1Gb RAM
40 node: 'ubuntu16.04-basebuild-1c-2g'
Zack Williams93baebf2018-04-13 12:35:35 -070041 project-type: freestyle
42 concurrent: true
43
Zack Williams31add082018-04-13 13:27:17 -070044 builders:
45 - shell: |
46 #/usr/bin/env bash
47 set -eu -o pipefail
Zack Williams5882d6c2018-04-13 15:22:46 -070048 time npm install
Zack Williams31add082018-04-13 13:27:17 -070049 npm run lint
50 npm test
Zack Williams93baebf2018-04-13 12:35:35 -070051