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