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
8eb34a6f
Commit
8eb34a6f
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
remove default before_script instead use extends construct
parent
bf3b441e
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
+21
-14
21 additions, 14 deletions
.gitlab-ci.yml
with
21 additions
and
14 deletions
.gitlab-ci.yml
+
21
−
14
View file @
8eb34a6f
...
@@ -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
:
...
...
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