This commit is contained in:
Price Hiller 2021-10-06 07:05:57 -05:00
parent af3b5f3c5d
commit aa62058bc2

View File

@ -1,5 +1,5 @@
default: default:
image: python:3.9 image: python:3.9-alpine
before_script: before_script:
- apk add build-base - apk add build-base
- apk add --no-cache postgresql-libs - apk add --no-cache postgresql-libs
@ -8,13 +8,12 @@ default:
- apk --purge del .build-deps - apk --purge del .build-deps
stages: # List of stages for jobs, and their order of execution stages: # List of stages for jobs, and their order of execution
- Build Wheel - test
- Test - build
pylint: pylint:
stage: Test stage: test
image: python:3.9-alpine
script: script:
- python3.9 -m pip install pylint pylint-exit anybadge - python3.9 -m pip install pylint pylint-exit anybadge
- mkdir ./pylint - mkdir ./pylint
@ -28,8 +27,8 @@ pylint:
build-job: # This job runs in the build stage, which runs first. build-job: # This job runs in the build stage, which runs first.
stage: Build Wheel stage: build
script: script:
- echo "Attempting to build distribution wheel" - echo "Attempting to build distribution wheel"
- python -m build --wheel - python -m build --wheel
- echo "Wheel successfully built!" - echo "Wheel successfully built!"