Merge "Cleanup javascript build"
This commit is contained in:
commit
47de7ad3e8
@ -1,7 +1,8 @@
|
|||||||
# The old javascript unit test build, kept while storyboard and vinz
|
# Runs Grunt Tests. To use this build, your Gruntfile must declare
|
||||||
# are migrated forward.
|
# a target named test:{name}, such as test:unit, test:integration, or
|
||||||
|
# test:functional
|
||||||
- job-template:
|
- job-template:
|
||||||
name: 'gate-{name}-js-unittests'
|
name: 'gate-{name}-js-test-{test-type}'
|
||||||
|
|
||||||
wrappers:
|
wrappers:
|
||||||
- build-timeout:
|
- build-timeout:
|
||||||
@ -13,109 +14,7 @@
|
|||||||
- revoke-sudo
|
- revoke-sudo
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- js-build:
|
- js-build:
|
||||||
command: 'test'
|
command: 'test:{test-type}'
|
||||||
envlist: 'grunt'
|
|
||||||
- assert-no-extra-files
|
|
||||||
|
|
||||||
publishers:
|
|
||||||
- console-log
|
|
||||||
- coverage-log
|
|
||||||
- scp:
|
|
||||||
site: 'static.openstack.org'
|
|
||||||
files:
|
|
||||||
- target: 'logs/$LOG_PATH'
|
|
||||||
source: 'reports/**'
|
|
||||||
keep-hierarchy: true
|
|
||||||
copy-after-failure: true
|
|
||||||
|
|
||||||
# We're uploading the compiled app as a pre-release sanity check,
|
|
||||||
# much like we do with docs builds.
|
|
||||||
- target: 'docs-draft/$LOG_PATH'
|
|
||||||
source: 'dist/**'
|
|
||||||
keep-hierarchy: true
|
|
||||||
copy-after-failure: false
|
|
||||||
node: '{node}'
|
|
||||||
|
|
||||||
# Runs Grunt Unit Tests. To use this build, your Gruntfile must declare
|
|
||||||
# a target named test:unit
|
|
||||||
- job-template:
|
|
||||||
name: 'gate-{name}-js-test-unit'
|
|
||||||
|
|
||||||
wrappers:
|
|
||||||
- build-timeout:
|
|
||||||
timeout: 40
|
|
||||||
- timestamps
|
|
||||||
|
|
||||||
builders:
|
|
||||||
- npm-install
|
|
||||||
- revoke-sudo
|
|
||||||
- gerrit-git-prep
|
|
||||||
- js-build:
|
|
||||||
command: 'test:unit'
|
|
||||||
envlist: 'grunt'
|
|
||||||
project: '{name}'
|
|
||||||
- assert-no-extra-files
|
|
||||||
|
|
||||||
publishers:
|
|
||||||
- console-log
|
|
||||||
- coverage-log
|
|
||||||
- scp:
|
|
||||||
site: 'static.openstack.org'
|
|
||||||
files:
|
|
||||||
- target: 'logs/$LOG_PATH'
|
|
||||||
source: 'reports/**'
|
|
||||||
keep-hierarchy: true
|
|
||||||
copy-after-failure: true
|
|
||||||
node: '{node}'
|
|
||||||
|
|
||||||
# Runs grunt integration tests. To use this build, your Gruntfile must declare
|
|
||||||
# a target named test:integration
|
|
||||||
- job-template:
|
|
||||||
name: 'gate-{name}-js-test-integration'
|
|
||||||
|
|
||||||
wrappers:
|
|
||||||
- build-timeout:
|
|
||||||
timeout: 40
|
|
||||||
- timestamps
|
|
||||||
|
|
||||||
builders:
|
|
||||||
- npm-install
|
|
||||||
- revoke-sudo
|
|
||||||
- gerrit-git-prep
|
|
||||||
- js-build:
|
|
||||||
command: 'test:integration'
|
|
||||||
envlist: 'grunt'
|
|
||||||
project: '{name}'
|
|
||||||
- assert-no-extra-files
|
|
||||||
|
|
||||||
publishers:
|
|
||||||
- console-log
|
|
||||||
- coverage-log
|
|
||||||
- scp:
|
|
||||||
site: 'static.openstack.org'
|
|
||||||
files:
|
|
||||||
- target: 'logs/$LOG_PATH'
|
|
||||||
source: 'reports/**'
|
|
||||||
keep-hierarchy: true
|
|
||||||
copy-after-failure: true
|
|
||||||
node: '{node}'
|
|
||||||
|
|
||||||
# Runs grunt functional tests. To use this build, your Gruntfile must declare
|
|
||||||
# a target named test:functional
|
|
||||||
- job-template:
|
|
||||||
name: 'gate-{name}-js-test-functional'
|
|
||||||
|
|
||||||
wrappers:
|
|
||||||
- build-timeout:
|
|
||||||
timeout: 40
|
|
||||||
- timestamps
|
|
||||||
|
|
||||||
builders:
|
|
||||||
- npm-install
|
|
||||||
- revoke-sudo
|
|
||||||
- gerrit-git-prep
|
|
||||||
- js-build:
|
|
||||||
command: 'test:functional'
|
|
||||||
envlist: 'grunt'
|
envlist: 'grunt'
|
||||||
project: '{name}'
|
project: '{name}'
|
||||||
- assert-no-extra-files
|
- assert-no-extra-files
|
||||||
|
@ -1602,9 +1602,12 @@
|
|||||||
tarball-site: tarballs.openstack.org
|
tarball-site: tarballs.openstack.org
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- gate-{name}-js-test-unit
|
- 'gate-{name}-js-test-{test-type}':
|
||||||
- gate-{name}-js-test-integration
|
test-type: 'unit'
|
||||||
- gate-{name}-js-test-functional
|
- 'gate-{name}-js-test-{test-type}':
|
||||||
|
test-type: 'functional'
|
||||||
|
- 'gate-{name}-js-test-{test-type}':
|
||||||
|
test-type: 'integration'
|
||||||
- gate-{name}-js-draft
|
- gate-{name}-js-draft
|
||||||
- '{name}-js-release-{branch-designator}':
|
- '{name}-js-release-{branch-designator}':
|
||||||
branch-designator: 'master'
|
branch-designator: 'master'
|
||||||
@ -1634,9 +1637,12 @@
|
|||||||
tarball-site: tarballs.openstack.org
|
tarball-site: tarballs.openstack.org
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- gate-{name}-js-test-unit
|
- 'gate-{name}-js-test-{test-type}':
|
||||||
- gate-{name}-js-test-integration
|
test-type: 'unit'
|
||||||
- gate-{name}-js-test-functional
|
- 'gate-{name}-js-test-{test-type}':
|
||||||
|
test-type: 'functional'
|
||||||
|
- 'gate-{name}-js-test-{test-type}':
|
||||||
|
test-type: 'integration'
|
||||||
- gate-{name}-js-draft
|
- gate-{name}-js-draft
|
||||||
- '{name}-js-release-{branch-designator}':
|
- '{name}-js-release-{branch-designator}':
|
||||||
branch-designator: 'master'
|
branch-designator: 'master'
|
||||||
|
Loading…
Reference in New Issue
Block a user