Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pyzenkit
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
Pyzenkit
Commits
f17e469e
Commit
f17e469e
authored
Apr 17, 2022
by
Rajmund Hruška
Browse files
Options
Downloads
Plain Diff
Merge branch 'devel' into 'master'
CI/CD See merge request 709/mentat/pyzenkit!2
parents
ef344bee
aaf9f118
Branches
Branches containing commit
No related tags found
1 merge request
!2
CI/CD
Pipeline
#1475
passed
Apr 17, 2022
Stage: test
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+108
-0
108 additions, 0 deletions
.gitlab-ci.yml
requirements-dev.pip
+4
-0
4 additions, 0 deletions
requirements-dev.pip
requirements-latest-dev.pip
+4
-0
4 additions, 0 deletions
requirements-latest-dev.pip
with
116 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
108
−
0
View file @
f17e469e
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
image
:
${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.7
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables
:
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache
:
paths
:
-
.cache/pip
-
venv/
before_script
:
-
pip install virtualenv
-
make show-version
# Print out python version for debugging
-
virtualenv venv
-
source venv/bin/activate
-
make deps
stages
:
# List of stages for jobs, and their order of execution
-
test
-
build
-
deploy
unit-test-job
:
stage
:
test
script
:
-
make test
pylint-test-job
:
stage
:
test
script
:
-
make pylint
pyflakes-test-job
:
stage
:
test
script
:
-
make pyflakes
build-job
:
stage
:
build
script
:
-
make buildbot
-
git clone https://gitlab-ci-token:$SIGNER_TOKEN@$SIGNER_REPO
-
bash signer/init_keyring.sh
-
python signer/signer.py --verbose $GPG_KEY "$PWD/dist"
artifacts
:
paths
:
-
dist
only
:
-
devel
-
master
sphinx-metadata-job
:
stage
:
build
script
:
-
printf "{\n\"codename\":\"$CI_COMMIT_BRANCH\",\n" > metadata.json
-
printf "\"suite\":$(if [ "$CI_COMMIT_BRANCH" == "master" ]; then echo \"stable\"; else echo \"unstable\"; fi),\n" >> metadata.json
-
printf "\"bversion\":\"$(make show-version)\",\n" >> metadata.json
-
printf "\"revision\":\"$CI_COMMIT_SHA\",\n" >> metadata.json
-
printf "\"bnumber\":\"$CI_PIPELINE_ID\",\n" >> metadata.json
-
printf "\"bdate\":\"$(date '+%Y-%m-%d %T')\"\n}\n" >> metadata.json
artifacts
:
paths
:
-
metadata.json
only
:
-
master
-
devel
twine-job
:
stage
:
deploy
script
:
-
printf "[pypi]\nusername = __token__\npassword = $TWINE_TOKEN\n" > .pypirc
-
mkdir dist2
-
cp dist/*.whl dist/*.tar.gz dist2/.
-
twine upload 'dist2/*' --skip-existing --config-file .pypirc
only
:
-
master
pages
:
stage
:
deploy
script
:
-
make docs
-
curl -L --header "JOB-TOKEN:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/devel/download?job=pages" -o devel.zip
-
curl -L --header "JOB-TOKEN:$CI_JOB_TOKEN" "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/master/download?job=pages" -o master.zip
-
unzip -n '*.zip' ||
true
# Ignore not existing zipfiles
-
mkdir -p public/"$CI_COMMIT_BRANCH"
-
mkdir -p public/"$CI_COMMIT_BRANCH"/files
-
cp -rf doc/_build/html public/"$CI_COMMIT_BRANCH"
-
cp -rf dist/* public/"$CI_COMMIT_BRANCH"/files/.
-
cd public/"$CI_COMMIT_BRANCH"/files
-
echo "<html><body><h1>Directory listing:</h1>" > ./index.html
-
find -exec echo "<a href='{}'>{}</a><br/>" \; | sort >> ./index.html
-
echo "</body></html>" >> ./index.html
artifacts
:
name
:
"
$CI_COMMIT_BRANCH"
paths
:
-
public
only
:
-
master
-
devel
\ No newline at end of file
This diff is collapsed.
Click to expand it.
requirements-dev.pip
+
4
−
0
View file @
f17e469e
setuptools
setuptools
wheel
wheel
twine
nose==1.3.7
nose==1.3.7
pyflakes==2.1.0
pyflakes==2.1.0
pylint==2.2.2
pylint==2.2.2
docutils<0.18
jinja2==2.10.3
markupsafe==2.0.1
sphinx==1.8.4
sphinx==1.8.4
sphinx-rtd-theme==0.4.2
sphinx-rtd-theme==0.4.2
This diff is collapsed.
Click to expand it.
requirements-latest-dev.pip
+
4
−
0
View file @
f17e469e
setuptools
setuptools
wheel
wheel
twine
nose
nose
pyflakes
pyflakes
pylint
pylint
docutils
jinja2
markupsafe
sphinx
sphinx
sphinx-rtd-theme
sphinx-rtd-theme
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