1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
.build_template: &build_template
stage: build
image: "${docker_image}"
script:
- python -m pip install --user --upgrade setuptools wheel
- python setup.py sdist bdist_wheel
- find ./build/
- find ./dist/
cache:
key: "${cache_key}"
paths:
- .cache/pip/
artifacts:
paths:
- ./dist/
- ./build/
build_python36:
<<: *build_template
variables:
docker_image: "python:3.6"
cache_key: "python36_cache"
build_python37:
<<: *build_template
variables:
docker_image: "python:3.7"
cache_key: "python37_cache"
build_python38:
<<: *build_template
variables:
docker_image: "python:3.8"
cache_key: "python38_cache"
|