ci: Add configure stage.

setup.py
Pierre-Antoine Rouby 2023-10-24 11:11:34 +02:00
parent f44ac69d68
commit 2d7681086d
1 changed files with 49 additions and 44 deletions

View File

@ -16,6 +16,7 @@
stages: stages:
- downloads - downloads
- configure
- test - test
- build - build
- package - package
@ -59,12 +60,12 @@ dl-mage-windows:
- mage-windows/mage_extraire.exe - mage-windows/mage_extraire.exe
- mage-windows/mailleurPF.exe - mage-windows/mailleurPF.exe
######### #############
# BUILD # # CONFIGURE #
######### #############
set-version: set-version:
stage: build stage: configure
tags: tags:
- linux - linux
script: script:
@ -75,7 +76,7 @@ set-version:
- VERSION - VERSION
build-lang: build-lang:
stage: build stage: configure
tags: tags:
- linux - linux
script: script:
@ -85,6 +86,49 @@ build-lang:
paths: paths:
- src/lang/*.qm - src/lang/*.qm
#########
# TESTS #
#########
unittest:
stage: test
tags:
- linux
needs:
- job: set-version
artifacts: true
script:
- python3 -m venv venv
- . venv/bin/activate
- pip3 install -U pip
- pip3 install -r ./full-requirements.txt
- pip3 install -U -r ./full-requirements.txt
- cd src
- python3 -m unittest discover -t .
test-pep8:
stage: test
tags:
- linux
needs:
- job: set-version
artifacts: true
- job: unittest
script:
# Setup virtual env
- python3 -m venv venv
- . venv/bin/activate
- pip3 install -U pip
- pip3 install -r ./requirements.txt
- pip3 install -U -r ./requirements.txt
- pip3 install pycodestyle
- pycodestyle ./src
allow_failure: true
#########
# BUILD #
#########
build-users-doc: build-users-doc:
stage: build stage: build
tags: tags:
@ -242,45 +286,6 @@ build-windows:
paths: paths:
- windows/pamhyr - windows/pamhyr
#########
# TESTS #
#########
unittest:
stage: test
tags:
- linux
needs:
- job: set-version
artifacts: true
script:
- python3 -m venv venv
- . venv/bin/activate
- pip3 install -U pip
- pip3 install -r ./full-requirements.txt
- pip3 install -U -r ./full-requirements.txt
- cd src
- python3 -m unittest discover -t .
test-pep8:
stage: test
tags:
- linux
needs:
- job: set-version
artifacts: true
- job: unittest
script:
# Setup virtual env
- python3 -m venv venv
- . venv/bin/activate
- pip3 install -U pip
- pip3 install -r ./requirements.txt
- pip3 install -U -r ./requirements.txt
- pip3 install pycodestyle
- pycodestyle ./src
allow_failure: true
############ ############
# PACKAGES # # PACKAGES #
############ ############