Skip to content
Snippets Groups Projects
Commit bf3b441e authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

add a before build script section

parent 1d29060d
No related branches found
No related tags found
1 merge request!22Add debian packaging ci
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment