blob: bb10618e5174c5978abde7fd4d401449e30c0a24 [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'
Kailash Khalasi8601af32018-05-17 18:17:11 -07006 name: 'verify_{project}_unit-test'
Zack Williams93baebf2018-04-13 12:35:35 -07007
8 description: |
Kailash Khalasi8601af32018-05-17 18:17:11 -07009 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 Williams93baebf2018-04-13 12:35:35 -070011
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 Williams5882d6c2018-04-13 15:22:46 -070025 # `npm install` can take >10m depending on connectivity
Zack Williams93baebf2018-04-13 12:35:35 -070026 wrappers:
27 - lf-infra-wrappers:
Zack Williams5882d6c2018-04-13 15:22:46 -070028 build-timeout: 20
Zack Williams93baebf2018-04-13 12:35:35 -070029 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'
Zack Williamsccc14742020-01-22 13:15:59 -070036 submodule-disable: '{submodule-disable}'
Zack Williams93baebf2018-04-13 12:35:35 -070037 submodule-recursive: 'false'
Zack Williamsccc14742020-01-22 13:15:59 -070038 submodule-timeout: '{submodule-timeout}'
Zack Williams93baebf2018-04-13 12:35:35 -070039 choosing-strategy: gerrit
40 jenkins-ssh-credential: '{jenkins-ssh-credential}'
41
Zack Williams194405d2018-04-16 13:28:45 -070042 # `npm install` fails on 1Gb RAM
Hung-Wei Chiuf6cbde22021-04-22 22:15:23 -070043 node: 'ubuntu18.04-basebuild-1c-2g'
Zack Williams93baebf2018-04-13 12:35:35 -070044 project-type: freestyle
45 concurrent: true
46
Zack Williams31add082018-04-13 13:27:17 -070047 builders:
48 - shell: |
49 #/usr/bin/env bash
50 set -eu -o pipefail
Zack Williams5882d6c2018-04-13 15:22:46 -070051 time npm install
Zack Williams31add082018-04-13 13:27:17 -070052 npm run lint
53 npm test
Zack Williams93baebf2018-04-13 12:35:35 -070054