Skip to content
Snippets Groups Projects
Commit 93f91c88 authored by Carlos Vega's avatar Carlos Vega
Browse files

Merge branch 'ci/debian-12-bookworm' into 'master'

Add stage for debian bookworm in .gitlab-ci.yml

See merge request !443
parents 7b7533cf 1ad5e91d
No related branches found
No related tags found
1 merge request!443Add stage for debian bookworm in .gitlab-ci.yml
Checking pipeline status
......@@ -221,6 +221,35 @@ test_install_debian_package_debian_buster:
- 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=/)
test_install_debian_package_debian_bookworm:
image: debian:bookworm
stage: test
only:
- tags
services:
- name: piotrgawron/debian-repo
alias: debian-repo
dependencies:
- build_debian
script:
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -y ssh software-properties-common dirmngr wget curl
- debian_file=$(ls *.deb)
- echo "PUT $debian_file /docker/incoming" | sftp -o StrictHostKeyChecking=no user@debian-repo
- ssh root@debian-repo /usr/local/sbin/reprepro-import
- apt-add-repository "deb http://debian-repo/ unstable main"
- apt-get update --allow-insecure-repositories
- DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated smasch
#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 and list projects
- 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=/)
test_version_in_base_html:
script:
- CURRENT_VERSION=`cat CHANGELOG |grep smasch |head -1 | cut -f2 -d'(' | cut -f1 -d')' | cut -f1 -d'-' `
......
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