Gitlab is now using as it's primary address. Please update your bookmarks. FAQ.

Commit f413e606 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

testing moved to a script

parent 96bebe91
......@@ -6,24 +6,9 @@ test_debian_stretch:
# we need to run it in privileged mode due to:
- privileged
- Debian*/*
- apt-get update
- apt-get install -y curl
- echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
#hacky way of installing minerva on docker - by default rc-invoke is preventing services changes on docker
- mv /usr/sbin/policy-rc.d /usr/sbin/policy-rc.d.backup
- mv gitlab-ci-policy-rc.d /usr/sbin/policy-rc.d
- chmod 0755 /usr/sbin/policy-rc.d
- bash <(curl -s
- mv /usr/sbin/policy-rc.d.backup /usr/sbin/policy-rc.d
- service tomcat8 start
#we need to wait a bit for tomcat start
- sleep 15
- wget http://localhost:8080/minerva/
#test if we can login and get configuration data
- test 200 = $(curl --write-out %{http_code} --silent --output /dev/null -c cookie.txt http://localhost:8080/minerva/api/doLogin)
- test 200 = $(curl --write-out %{http_code} --silent --output configuration.json --cookie cookie.txt http://localhost:8080/minerva/api/configuration/)
- ./
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