Skip to content
Snippets Groups Projects
Commit 645de5fc authored by Piotr Gawron's avatar Piotr Gawron
Browse files

job for testing rpm package

parent 78ed69ac
No related branches found
No related tags found
1 merge request!425rpm package
Pipeline #56773 failed
......@@ -149,7 +149,7 @@ test_install_debian_package_ubuntu_18:
#we need to wait a bit for gunicorn start
- sleep 15
- wget http://localhost:8888/account/login/?next=/
#test if we can login and list projects
#test if we can login
- test 302 = $(curl -X GET --write-out %{http_code} --silent --output /dev/null http://localhost:8888/)
- test 200 = $(curl -X GET --write-out %{http_code} --silent --output /dev/null http://localhost:8888/account/login/?next=/)
......@@ -248,3 +248,23 @@ build_rpm:
- pip install -r requirements-dev.txt --default-timeout=180 -i https://pypi.lcsb.uni.lu/simple/
- sh build_rpm.sh
test_install_rpm_package_rocky:
image: rockylinux
stage: test
only:
- tags
dependencies:
- build_rpm
script:
- ls -al
- yum -y localinstall smasch-*.rpm
#systemd is not available on docker so we need to start manually gunicorn (smasch.service is not tested)
- cd /usr/lib/smasch/
- /usr/lib/smasch/env/bin/gunicorn -b 127.0.0.1:8888 --pid smasch.pid smash.wsgi --error-logfile /var/log/smasch/gunicorn.log --log-level DEBUG --capture-output --limit-request-line 8192 &
#we need to wait a bit for gunicorn start
- sleep 15
- wget http://localhost:8888/account/login/?next=/
#test if we can login
- test 302 = $(curl -X GET --write-out %{http_code} --silent --output /dev/null http://localhost:8888/)
- test 200 = $(curl -X GET --write-out %{http_code} --silent --output /dev/null http://localhost:8888/account/login/?next=/)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment