Cleanup javascript build
Once vinz and storyboard have been migrated forward to use the new JS build targets, we can remove the old build. This patch removes the legacy gate-{name}-js-unittests target, and collapses the explicit unit/integration/functional targets into one configurable one (as per clarkb's comments on #106172). Change-Id: I331fafdc70253a893027255128865d7239f1406e
This commit is contained in:
parent
7a19e14546
commit
18df7b8ecc
@ -1,7 +1,8 @@
|
||||
# The old javascript unit test build, kept while storyboard and vinz
|
||||
# are migrated forward.
|
||||
# Runs Grunt Tests. To use this build, your Gruntfile must declare
|
||||
# a target named test:{name}, such as test:unit, test:integration, or
|
||||
# test:functional
|
||||
- job-template:
|
||||
name: 'gate-{name}-js-unittests'
|
||||
name: 'gate-{name}-js-test-{test-type}'
|
||||
|
||||
wrappers:
|
||||
- build-timeout:
|
||||
@ -13,109 +14,7 @@
|
||||
- revoke-sudo
|
||||
- gerrit-git-prep
|
||||
- js-build:
|
||||
command: 'test'
|
||||
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'
|
||||
command: 'test:{test-type}'
|
||||
envlist: 'grunt'
|
||||
project: '{name}'
|
||||
- assert-no-extra-files
|
||||
|
@ -1539,9 +1539,12 @@
|
||||
tarball-site: tarballs.openstack.org
|
||||
|
||||
jobs:
|
||||
- gate-{name}-js-test-unit
|
||||
- gate-{name}-js-test-integration
|
||||
- gate-{name}-js-test-functional
|
||||
- 'gate-{name}-js-test-{test-type}':
|
||||
test-type: 'unit'
|
||||
- 'gate-{name}-js-test-{test-type}':
|
||||
test-type: 'functional'
|
||||
- 'gate-{name}-js-test-{test-type}':
|
||||
test-type: 'integration'
|
||||
- gate-{name}-js-draft
|
||||
- '{name}-js-release-{branch-designator}':
|
||||
branch-designator: 'master'
|
||||
@ -1563,9 +1566,12 @@
|
||||
tarball-site: tarballs.openstack.org
|
||||
|
||||
jobs:
|
||||
- gate-{name}-js-test-unit
|
||||
- gate-{name}-js-test-integration
|
||||
- gate-{name}-js-test-functional
|
||||
- 'gate-{name}-js-test-{test-type}':
|
||||
test-type: 'unit'
|
||||
- 'gate-{name}-js-test-{test-type}':
|
||||
test-type: 'functional'
|
||||
- 'gate-{name}-js-test-{test-type}':
|
||||
test-type: 'integration'
|
||||
- gate-{name}-js-draft
|
||||
- '{name}-js-release-{branch-designator}':
|
||||
branch-designator: 'master'
|
||||
|
Loading…
Reference in New Issue
Block a user