Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MPSD HPC Tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
MPSD Computational Science
MPSD HPC Tools
Commits
bf3b441e
Commit
bf3b441e
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
add a before build script section
parent
1d29060d
No related branches found
No related tags found
1 merge request
!22
Add debian packaging ci
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+24
-16
24 additions, 16 deletions
.gitlab-ci.yml
with
24 additions
and
16 deletions
.gitlab-ci.yml
+
24
−
16
View file @
bf3b441e
...
...
@@ -6,18 +6,29 @@ stages:
-
package
before_script
:
-
cat /etc/issue
-
python3 -V
-
which python3
-
python3 -m venv ../venv
-
source ../venv/bin/activate
-
which python3
-
pwd
-
pip install -U pip
-
pip install ."[dev]"
-
mpsd-quota --version
-
cat /etc/issue
-
python3 -V
-
which python3
-
python3 -m venv ../venv
-
source ../venv/bin/activate
-
which python3
-
pwd
-
pip install -U pip
-
pip install ."[dev]"
-
mpsd-quota --version
before_build
:
-
cat /etc/issue
-
export DEBEMAIL="gitlab_ci@domain.com"
-
export DEBFULLNAME="Gitlab Runner"
-
apt-get update && apt-get install -y build-essential python3-all python3-dev python3-venv python3-wheel python3-setuptools python3-pip
-
apt-get install -y binutils lintian debhelper dh-make devscripts dh-python pbuilder
-
apt-get install -y fakeroot dpkg-dev
-
python3 -V
-
which python3
-
pwd
-
ls -la
style
:
stage
:
test-style
image
:
python:latest
...
...
@@ -58,12 +69,9 @@ typing:
package
:
stage
:
package
image
:
debian:bullseye
before_script
:
-
before_build
script
:
-
export DEBEMAIL="gitlab_ci@domain.com"
-
export DEBFULLNAME="Gitlab Runner"
-
apt-get update && apt-get install -y build-essential python3-all python3-dev python3-venv python3-wheel python3-setuptools python3-pip
-
apt-get install -y binutils lintian debhelper dh-make devscripts dh-python pbuilder
-
apt-get install -y fakeroot dpkg-dev
-
make deb-package
artifacts
:
paths
:
...
...
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