Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mentat Test 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
Mentat Test 3
Commits
d909d48c
Commit
d909d48c
authored
8 months ago
by
Rajmund Hruška
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
08115228
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#9142
passed
8 months ago
Stage: test
Stage: check-warnings
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-17
7 additions, 17 deletions
.gitlab-ci.yml
with
7 additions
and
17 deletions
.gitlab-ci.yml
+
7
−
17
View file @
d909d48c
...
...
@@ -46,11 +46,10 @@ check-deprecation-warnings:
-
"
if
[[
$(grep
DeprecationWarning
errors.log)
]];
then
cat
errors.log;
exit
1;
fi"
allow_failure
:
true
.
build-job
:
build-job
:
stage
:
build
script
:
-
make deps-build-whl
-
make build-whl
-
echo "build job"
artifacts
:
paths
:
-
dist
...
...
@@ -62,7 +61,7 @@ check-deprecation-warnings:
changes
:
-
lib/mentat/__init__.py
.
sphinx-metadata-job
:
sphinx-metadata-job
:
stage
:
build
before_script
:
[]
script
:
...
...
@@ -81,15 +80,10 @@ check-deprecation-warnings:
-
devel
-
release
.
twine-job
:
twine-job
:
stage
:
deploy
script
:
-
make deps-python-dev
-
printf "[pypi]\nusername = __token__\npassword = $TWINE_TOKEN\n" > .pypirc
# Set credentials for pypi.org
-
mkdir dist2
-
cp dist/*.whl dist/*.tar.gz dist2/.
# Get only .whl and .tar.gz files
-
python -m twine upload 'dist2/*' --skip-existing --config-file .pypirc
# Upload to pypi.org
-
TWINE_PASSWORD=${CI_JOB_TOKEN} TWINE_USERNAME=gitlab-ci-token python -m twine upload --repository-url ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi dist2/*
# Upload to GitLab's package registry
-
echo "twine"
only
:
refs
:
-
master
...
...
@@ -120,14 +114,10 @@ check-deprecation-warnings:
-
devel
-
release
.
deb-job
:
deb-job
:
stage
:
deploy
script
:
-
case "$CI_COMMIT_BRANCH" in "devel") SUITE="development" ;; "release") SUITE="release" ;; "master") SUITE="production" ;; esac
-
make deps-build-deb
-
make build-deb BUILD_NUMBER=$CI_PIPELINE_ID BUILD_SUITE=$SUITE
-
DEB_VERSION=$(ls debdist | grep -v latest)
-
curl --request PUT --user "gitlab-ci-token:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/debian/$DEB_VERSION?distribution=$SUITE&component=main" --upload-file "debdist/$DEB_VERSION"
-
echo "deb job"
only
:
refs
:
-
devel
...
...
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