mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-22 21:28:24 +00:00
Fix alpine requirements in CI
This commit is contained in:
parent
f7a45ebc7d
commit
816f32e610
@ -7,14 +7,16 @@ stages:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
script:
|
script:
|
||||||
- apk add --no-cache make gcc musl-dev yaml-dev
|
- apk add --no-cache make
|
||||||
|
- make ci-install-alpine-requirements
|
||||||
- python setup.py install
|
- python setup.py install
|
||||||
- make ci-install-python-requirements
|
- make ci-install-python-requirements
|
||||||
- make test
|
- make test
|
||||||
|
|
||||||
build:images:
|
build:images:
|
||||||
script:
|
script:
|
||||||
- apk add --no-cache docker make
|
- apk add --no-cache make
|
||||||
|
- make ci-install-alpine-requirements
|
||||||
- python setup.py install
|
- python setup.py install
|
||||||
- make ci-build-images
|
- make ci-build-images
|
||||||
tags:
|
tags:
|
||||||
@ -24,6 +26,7 @@ build:images:
|
|||||||
build:docs:
|
build:docs:
|
||||||
script:
|
script:
|
||||||
- apk add --no-cache make
|
- apk add --no-cache make
|
||||||
|
- make ci-install-alpine-requirements
|
||||||
- pip install -r requirements/docs.txt
|
- pip install -r requirements/docs.txt
|
||||||
- cd docs && make
|
- cd docs && make
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -34,6 +37,7 @@ build:docs:
|
|||||||
build:pypi:
|
build:pypi:
|
||||||
script:
|
script:
|
||||||
- apk add --no-cache make
|
- apk add --no-cache make
|
||||||
|
- make ci-install-alpine-requirements
|
||||||
- make ci-install-python-requirements
|
- make ci-install-python-requirements
|
||||||
- make package
|
- make package
|
||||||
artifacts:
|
artifacts:
|
||||||
@ -43,7 +47,8 @@ build:pypi:
|
|||||||
|
|
||||||
deploy:images:
|
deploy:images:
|
||||||
script:
|
script:
|
||||||
- apk add --no-cache docker make
|
- apk add --no-cache make
|
||||||
|
- make ci-install-alpine-requirements
|
||||||
- python setup.py install
|
- python setup.py install
|
||||||
- make ci-push-images
|
- make ci-push-images
|
||||||
only:
|
only:
|
||||||
@ -55,6 +60,7 @@ deploy:images:
|
|||||||
deploy:pypi:
|
deploy:pypi:
|
||||||
script:
|
script:
|
||||||
- apk add --no-cache make
|
- apk add --no-cache make
|
||||||
|
- make ci-install-alpine-requirements
|
||||||
- make ci-install-python-requirements
|
- make ci-install-python-requirements
|
||||||
- make ci-pypi
|
- make ci-pypi
|
||||||
dependencies:
|
dependencies:
|
||||||
|
3
Makefile
3
Makefile
@ -61,6 +61,9 @@ ci-info: ## Print info about environment
|
|||||||
python3 --version
|
python3 --version
|
||||||
pip3 --version
|
pip3 --version
|
||||||
|
|
||||||
|
ci-install-alpine-requirements: ## Install requirements for a python:alpine image
|
||||||
|
apk add --no-cache docker gcc musl-dev yaml-dev
|
||||||
|
|
||||||
ci-install-python-requirements: ## Install requirements
|
ci-install-python-requirements: ## Install requirements
|
||||||
pip3 install -U setuptools pip
|
pip3 install -U setuptools pip
|
||||||
pip3 install -r requirements/dev.txt
|
pip3 install -r requirements/dev.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user