summaryrefslogtreecommitdiff
path: root/qa/bin
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-02-20 12:45:04 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-09 10:36:27 +0100
commit7d20e47622c9a6e0a780bdbe9b53c8890c00deba (patch)
tree9650b8b1d1edde4b92a748a9ee9ab5c4e4c1ba5c /qa/bin
parent72e940df2c24ab80056dfe296011c7a44ebdf3f0 (diff)
downloadgitlab-ce-7d20e47622c9a6e0a780bdbe9b53c8890c00deba.tar.gz
Add GitLab QA integrations tests to GitLab CE / EE
Diffstat (limited to 'qa/bin')
-rwxr-xr-xqa/bin/docker25
-rwxr-xr-xqa/bin/qa7
-rwxr-xr-xqa/bin/test3
3 files changed, 35 insertions, 0 deletions
diff --git a/qa/bin/docker b/qa/bin/docker
new file mode 100755
index 00000000000..683e915f698
--- /dev/null
+++ b/qa/bin/docker
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+case "$1" in
+ build)
+ docker pull $CI_REGISTRY_IMAGE:latest
+ docker build --cache-from $CI_REGISTRY_IMAGE:latest \
+ -t $CI_REGISTRY_IMAGE:ce-latest -t $CI_REGISTRY_IMAGE:ee-latest \
+ -t $CI_REGISTRY_IMAGE:ce-nightly -t $CI_REGISTRY_IMAGE:ee-nightly \
+ -t $CI_REGISTRY_IMAGE:latest .
+ ;;
+ publish)
+ test -n "$CI_BUILD_TOKEN" || exit 1
+ docker login --username gitlab-ci-token --password $CI_BUILD_TOKEN registry.gitlab.com
+ docker push $CI_REGISTRY_IMAGE:latest
+ docker push $CI_REGISTRY_IMAGE:ce-latest
+ docker push $CI_REGISTRY_IMAGE:ee-latest
+ docker push $CI_REGISTRY_IMAGE:ee-nightly
+ docker push $CI_REGISTRY_IMAGE:ee-nightly
+ docker logout registry.gitlab.com
+ ;;
+ *)
+ echo "Usage: $0 [build|publish]"
+ exit 1
+ ;;
+esac
diff --git a/qa/bin/qa b/qa/bin/qa
new file mode 100755
index 00000000000..cecdeac14db
--- /dev/null
+++ b/qa/bin/qa
@@ -0,0 +1,7 @@
+#!/usr/bin/env ruby
+
+require_relative '../qa'
+
+QA::Scenario
+ .const_get(ARGV.shift)
+ .perform(*ARGV)
diff --git a/qa/bin/test b/qa/bin/test
new file mode 100755
index 00000000000..997392ad6e4
--- /dev/null
+++ b/qa/bin/test
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+xvfb-run bundle exec bin/qa $@