Skip to content

Instantly share code, notes, and snippets.

@josephsamela
Last active November 7, 2018 19:14
Show Gist options
  • Save josephsamela/43c644e21a9b05c3dccb615931e7a56e to your computer and use it in GitHub Desktop.
Save josephsamela/43c644e21a9b05c3dccb615931e7a56e to your computer and use it in GitHub Desktop.
Gitlab CI/CD pipeline to automate building packages for mutliple versions of Python
stages:
- build
python3:win64:
stage: build
tags: ["windows", "64bit", "python3"]
script:
- py -3-64 -V -V
- py -3-64 setup.py bdist_wheel
artifacts:
paths:
- dist/
python3:win32:
stage: build
tags: ["windows", "32bit", "python3"]
script:
- py -3-32 -V -V
- py -3-32 setup.py bdist_wheel
artifacts:
paths:
- dist/
python2:win64:
stage: build
tags: ["windows", "64bit", "python2"]
script:
- py -2-64 -V -V
- py -2-64 setup.py bdist_wheel
artifacts:
paths:
- dist/
python2:win32:
stage: build
tags: ["windows", "32bit", "python2"]
script:
- py -2-32 -V -V
- py -2-32 setup.py bdist_wheel
artifacts:
paths:
- dist/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment