Commit 75e8ae1c authored by Vincent Texier's avatar Vincent Texier
Browse files

[enh] add .gitlab-ci.yml

parent 0ab34a26
Pipeline #13839 failed with stages
in 10 minutes and 39 seconds
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment