Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tikka
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
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
Tikka
Commits
75e8ae1c
Commit
75e8ae1c
authored
3 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[enh] add .gitlab-ci.yml
parent
0ab34a26
No related branches found
No related tags found
No related merge requests found
Pipeline
#13839
failed
3 years ago
Stage: checks
Stage: tests
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+92
-0
92 additions, 0 deletions
.gitlab-ci.yml
with
92 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
92
−
0
View file @
75e8ae1c
stages
:
-
checks
-
tests
-
release
variables
:
DOCKER_IMAGE
:
"
registry.duniter.org/docker/python3/tikka-builder"
BUILD_OS
:
"
ubuntu-18.04"
TIKKA_VERSION
:
"
0.1.0"
image
:
$DOCKER_IMAGE/$BUILD_OS
.code_changes
:
rules
:
-
changes
:
-
tikka/**/*.py
-
tests/**/*.py
.changes
:
rules
:
-
changes
:
-
tikka/**/*.py
-
tests/**/*.py
-
.gitlab-ci.yml
-
Makefile
-
pyproject.toml
build
:
extends
:
.changes
stage
:
checks
script
:
-
poetry build
checks
:
extends
:
# - .code_changes
stage
:
checks
script
:
-
poetry install --no-root
-
make format
-
make mypy
-
make pylint
-
make isort
-
make insert-license
tests
:
extends
:
.changes
stage
:
tests
script
:
-
poetry install --no-root
-
bin/tests.sh domains
pypi
:
stage
:
release
script
:
-
poetry publish --build --username $PYPI_LOGIN --password $PYPI_PASSWORD
rules
:
-
if
:
$CI_COMMIT_TAG
when
:
manual
-
if
:
$CI_COMMIT_BRANCH == "main"
when
:
manual
-
when
:
never
pypi_test
:
stage
:
release
script
:
-
poetry config repositories.pypi_test https://test.pypi.org/legacy/
-
poetry publish --build --username $PYPI_TEST_LOGIN --password $PYPI_TEST_PASSWORD --repository pypi_test
rules
:
-
if
:
$CI_COMMIT_TAG
when
:
manual
-
if
:
$CI_COMMIT_BRANCH == "main"
when
:
manual
-
when
:
never
ubuntu-18.04
:
stage
:
release
image
:
"
registry.duniter.org/docker/python3/tikka-builder/ubuntu-18.04"
script
:
-
poetry install --no-root
-
make i18n_build
-
make pyinstaller
# artifacts:
# paths:
# - dist/tikka.zip
# expire_in: 1 yrs
rules
:
# - if: $CI_COMMIT_TAG
# when: manual
# - if: $CI_COMMIT_BRANCH == "main"
# when: manual
-
when
:
manual
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