From ae36a2bd0778701f34bceb88116f25d26054c545 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Fri, 14 Feb 2020 17:52:33 +0200 Subject: [PATCH] [ci] #118: Move format, build, checks jobs into checks stage - Build and check (mypy, pylint) should be a beforehand check - Remove comments --- .gitlab-ci.yml | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7eaa5608..5080d2ee 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,6 @@ stages: - - format + - checks - tests - - build - release - publish_doc @@ -11,7 +10,6 @@ variables: image: $DOCKER_IMAGE/$PYTHON_VERSION:latest -# SUB-TASKS .push_to_github: tags: - github @@ -40,14 +38,29 @@ image: $DOCKER_IMAGE/$PYTHON_VERSION:latest - tests/**/*.py - pyproject.toml -# TASKS format: extends: - .changes - stage: format + stage: checks script: - make check-format +build: + extends: + - .changes + stage: checks + script: + - poetry build + +check: + extends: + - .changes + stage: checks + script: + - poetry install + - make mypy + - make pylint + .tests: extends: .changes stage: tests @@ -78,22 +91,6 @@ tests-3.8: extends: .tests tags: [poetry-78] -check: - extends: - - .changes - stage: tests - script: - - poetry install - - make mypy - - make pylint - -build: - extends: - - .changes - stage: build - script: - - poetry build - release: extends: - .push_to_github -- GitLab