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

Commit 96bebe91 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

testing moved to a script

parent a234723e
apt-get update
apt-get install -y curl lsb-release
version=`lsb_release -r -s`
name=`lsb_release -i -s`
mkdir directory
cp badge_fail.svg $directory
lsb_release -a > $directory/info.txt
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/)
cp badge_pass.svg $directory
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