Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Commits
1ad5e91d
Commit
1ad5e91d
authored
1 year ago
by
Carlos Vega
Browse files
Options
Downloads
Patches
Plain Diff
Add stage for debian bookworm in .gitlab-ci.yml
parent
ffceed44
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!443
Add stage for debian bookworm in .gitlab-ci.yml
Pipeline
#80106
passed with warnings
11 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+29
-0
29 additions, 0 deletions
.gitlab-ci.yml
with
29 additions
and
0 deletions
.gitlab-ci.yml
+
29
−
0
View file @
1ad5e91d
...
...
@@ -211,6 +211,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'-' `
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment