Commit b4946037 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'ci/integrate-with-gitlab-ci' into 'master'

Add initial GitLab CI configuration file



See merge request !1
parents 772a7b69 e7fc4cf6
image: docker:1.11
services:
- docker:1.11-dind
gitlab-ce-test:
variables:
HOSTNAME: gitlab-qa.test
GITLAB_URL: http://$HOSTNAME
MOUNT_VOLUMES_TO_SERVICES: "true"
script:
- docker network create test
- docker run -d --name gitlab-qa --net test --hostname $HOSTNAME gitlab/gitlab-ce:latest
- docker run -t --net test -e "GITLAB_URL=$GITLAB_URL" -v $(pwd):/tests -w /tests ruby:2.2 bin/run
#!/bin/bash
apt-get update
apt-get install -y \
libqt5webkit5-dev qt5-qmake \
qt5-default build-essential xvfb
bundle install
#!/bin/bash
# Install dependencies
#
source "bin/prepare"
# Wait for GitLab service to become available
#
source "bin/wait"
xvfb-run bundle exec rspec $@
#!/bin/bash
echo "GITLAB_URL: ${GITLAB_URL}"
echo "Waiting for GitLab to become available ..."
curl --silent --head --fail -o /dev/null --retry 10 \
--retry-delay 1 --max-time 2 --retry-max-time 20 $GITLAB_URL
if [ "$?" -eq 0 ]; then
echo 'GitLab is available'
else
echo -e "\033[31;1mGitLab service is not available!\033[0m"
exit 1
fi
......@@ -19,10 +19,10 @@ end
Capybara.configure do |config|
config.app_host = ENV['GITLAB_HOST']
config.app_host = ENV['GITLAB_URL']
config.default_driver = :webkit
end
Capybara::Webkit.configure do |config|
config.allow_url(ENV['GITLAB_HOST'])
config.allow_url(ENV['GITLAB_URL'])
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment