Skip to content
Snippets Groups Projects
Commit ba3abcba authored by Vincent Texier's avatar Vincent Texier
Browse files

[enh] #817 change docker image to build AppImage

Image weight is smaller
Image include wget to build AppImage
Python >= 3.6.10 requirement is now the default
parent 09b272bf
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,7 @@ stages:
- build
- release
variables:
PYENV_PYTHON_VERSION: 3.5.5
image: registry.duniter.org/docker/python3/duniterpy-builder:0.0.7
image: registry.duniter.org/docker/python3/sakia-builder:1.0.0
# SUB-TASKS
.push_to_github:
......@@ -29,15 +26,6 @@ image: registry.duniter.org/docker/python3/duniterpy-builder:0.0.7
# github push
- bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?"
.env:
before_script:
- export PYENV_ROOT="$HOME/.pyenv"
- export PATH="$PYENV_ROOT/bin:$PATH"
- eval "$(pyenv init -)"
- pyenv shell $PYENV_PYTHON_VERSION
- export PATH=/opt/qt/5.9/5.9.4/gcc_64/bin:$PATH
- export DISPLAY=:99
.changes:
only:
changes:
......@@ -53,28 +41,24 @@ image: registry.duniter.org/docker/python3/duniterpy-builder:0.0.7
# TASKS
format:
extends:
- .env
- .changes
stage: format
script:
- pyenv shell 3.6.4 # black install and run needs python 3.6.x minimum
- pip install -r requirements_dev.txt
- make check-format
tests:
extends:
- .env
- .changes
stage: tests
script:
- pyenv shell 3.6.4 # black install needs python 3.6.x minimum
- pip install -r requirements.txt
- pip install -r requirements_dev.txt
- /start.sh # start xvfb
- make tests
build:
extends:
- .env
- .changes
stage: build
script:
......@@ -84,12 +68,10 @@ build:
release_appimage:
extends:
- .env
- .changes
stage: release
when: manual
script:
- apt-get install wget
- pip install -r requirements.txt
- pip install -r requirements_deploy.txt
- make build
......@@ -102,7 +84,6 @@ release_appimage:
release_pypi:
extends:
- .env
- .push_to_github
stage: release
when: manual
......@@ -115,7 +96,6 @@ release_pypi:
- master
release_pypi_test:
extends: .env
stage: release
when: manual
only: [tags, dev]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment