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:
Michael Krotscheck 2014-08-01 15:37:28 -07:00
parent 7a19e14546
commit 18df7b8ecc
2 changed files with 17 additions and 112 deletions

View File

@ -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

View File

@ -1539,9 +1539,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'
@ -1563,9 +1566,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'