From 427d38d60328bdfff18ad3f97d0adc96d2ef7a6f Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Sun, 15 Feb 2015 12:11:30 +0100 Subject: [PATCH] Initial integration tests for storyboard Change-Id: I6e70ea592dc4652c89754d3febf7280d6cc0a4d9 Depends-On: Ie676d3152cc4cd854ab6644e5fd281de9c2d70fd Story: 2000134 --- jenkins/jobs/projects.yaml | 3 ++- jenkins/jobs/storyboard.yaml | 43 ++++++++++++++++++++++++++++++++++++ zuul/layout.yaml | 4 ++++ 3 files changed, 49 insertions(+), 1 deletion(-) diff --git a/jenkins/jobs/projects.yaml b/jenkins/jobs/projects.yaml index 6a0c5d7a03..25fc4aa1bd 100755 --- a/jenkins/jobs/projects.yaml +++ b/jenkins/jobs/projects.yaml @@ -3024,7 +3024,7 @@ jobs: - python-jobs - pypi-jobs - + - check-storyboard-js-integration - project: name: storyboard-webclient @@ -3051,6 +3051,7 @@ branch-designator: 'master' - '{name}-js-release-{branch-designator}': branch-designator: 'branch' + - check-storyboard-js-integration - project: name: subunit2sql diff --git a/jenkins/jobs/storyboard.yaml b/jenkins/jobs/storyboard.yaml index c28e4db124..ce07c2221a 100644 --- a/jenkins/jobs/storyboard.yaml +++ b/jenkins/jobs/storyboard.yaml @@ -16,3 +16,46 @@ source: 'doc/build/html/**/*' keep-hierarchy: true - console-log + +- job: + name: check-storyboard-js-integration + wrappers: + - build-timeout: + timeout: 40 + - timestamps + + builders: + - npm-install + - xvfb-install + - chrome-install + - gerrit-git-prep + - shell: | + #!/bin/bash -xe + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git git://git.openstack.org openstack-infra/storyboard openstack-infra/storyboard-webclient + + export CREATE_USER=1 + export DB_ADMIN_USER=root + + ./storyboard/tools/install_test_backend.sh + + - js-build: + command: 'test:integration' + envlist: 'grunt_no_api' + project: 'storyboard-webclient' + - assert-no-extra-files + + - shell: | + #!/bin/bash -xe + ./storyboard/tools/destroy_test_backend.sh + + 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}' diff --git a/zuul/layout.yaml b/zuul/layout.yaml index 6fd5dec2f8..cac2416794 100755 --- a/zuul/layout.yaml +++ b/zuul/layout.yaml @@ -933,6 +933,8 @@ jobs: voting: false - name: gate-blazar-pylint voting: false + - name: check-storyboard-js-integration + voting: false - name: check-tempest-dsvm-docker voting: false - name: check-tempest-dsvm-docker-centos7 @@ -4466,6 +4468,7 @@ projects: - gate-storyboard-pep8 - gate-storyboard-docs - gate-storyboard-python27 + - check-storyboard-js-integration gate: - gate-storyboard-docs - gate-storyboard-pep8 @@ -4491,6 +4494,7 @@ projects: - gate-storyboard-webclient-js-test-integration - gate-storyboard-webclient-js-test-functional - gate-storyboard-webclient-js-draft + - check-storyboard-js-integration gate: - gate-storyboard-webclient-js-test-unit - gate-storyboard-webclient-js-test-integration