blob: 97509fa3237983c5cfe977311347d95e29849b65 [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'
36 submodule-recursive: 'false'
37 choosing-strategy: gerrit
38 jenkins-ssh-credential: '{jenkins-ssh-credential}'
39
Zack Williams194405d2018-04-16 13:28:45 -070040 # `npm install` fails on 1Gb RAM
41 node: 'ubuntu16.04-basebuild-1c-2g'
Zack Williams93baebf2018-04-13 12:35:35 -070042 project-type: freestyle
43 concurrent: true
44
Zack Williams31add082018-04-13 13:27:17 -070045 builders:
46 - shell: |
47 #/usr/bin/env bash
48 set -eu -o pipefail
Zack Williams5882d6c2018-04-13 15:22:46 -070049 time npm install
Zack Williams31add082018-04-13 13:27:17 -070050 npm run lint
51 npm test
Zack Williams93baebf2018-04-13 12:35:35 -070052