mirror of https://gitlab.com/pamhyr/pamhyr2
ci: Add configure stage.
parent
f44ac69d68
commit
2d7681086d
|
|
@ -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 #
|
||||||
############
|
############
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue