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

remove default before_script instead use extends construct

parent bf3b441e
No related branches found
No related tags found
1 merge request!22Add debian packaging ci
...@@ -5,19 +5,22 @@ stages: ...@@ -5,19 +5,22 @@ stages:
- test - test
- package - package
before_script: .install_python_dependencies:
- cat /etc/issue before_script:
- python3 -V - cat /etc/issue
- which python3 - python3 -V
- python3 -m venv ../venv - which python3
- source ../venv/bin/activate - python3 -m venv ../venv
- which python3 - source ../venv/bin/activate
- pwd - which python3
- pip install -U pip - pwd
- pip install ."[dev]" - pip install -U pip
- mpsd-quota --version - pip install ."[dev]"
- mpsd-quota --version
- mpsd-quota --help
before_build: .install_build_dependencies:
before_script:
- cat /etc/issue - cat /etc/issue
- export DEBEMAIL="gitlab_ci@domain.com" - export DEBEMAIL="gitlab_ci@domain.com"
- export DEBFULLNAME="Gitlab Runner" - export DEBFULLNAME="Gitlab Runner"
...@@ -32,6 +35,7 @@ before_build: ...@@ -32,6 +35,7 @@ before_build:
style: style:
stage: test-style stage: test-style
image: python:latest image: python:latest
extends: .install_python_dependencies
script: script:
- black --version - black --version
- ruff --version - ruff --version
...@@ -42,18 +46,21 @@ style: ...@@ -42,18 +46,21 @@ style:
test3-09: test3-09:
stage: test stage: test
image: python:3.9 image: python:3.9
extends: .install_python_dependencies
script: script:
- make test+coverage - make test+coverage
test3-10: test3-10:
stage: test stage: test
image: python:3.10 image: python:3.10
extends: .install_python_dependencies
script: script:
- make test+coverage - make test+coverage
test3-11: test3-11:
stage: test stage: test
image: python:3.11 image: python:3.11
extends: .install_python_dependencies
script: script:
- make test+coverage - make test+coverage
...@@ -62,6 +69,7 @@ test3-11: ...@@ -62,6 +69,7 @@ test3-11:
typing: typing:
stage: test-style stage: test-style
image: python:latest image: python:latest
extends: .install_python_dependencies
script: script:
- make typing || /bin/true - make typing || /bin/true
...@@ -69,8 +77,7 @@ typing: ...@@ -69,8 +77,7 @@ typing:
package: package:
stage: package stage: package
image: debian:bullseye image: debian:bullseye
before_script: extends: .install_build_dependencies
- before_build
script: script:
- make deb-package - make deb-package
artifacts: artifacts:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment