Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
add_module
Commits
2aad7422
Commit
2aad7422
authored
Oct 27, 2020
by
Paul McCarthy
🚵
Browse files
CI: test build dist
parent
e58c1f72
Changes
2
Hide whitespace changes
Inline
Side-by-side
.ci/build_dist.sh
0 → 100644
View file @
2aad7422
#!/usr/bin/env bash
pip
install
wheel setuptools twine
python setup.py sdist
python setup.py bdist_wheel
twine check dist/
*
# do a test install from both source and wheel
sdist
=
`
find dist
-maxdepth
1
-name
*
.tar.gz
`
wheel
=
`
find dist
-maxdepth
1
-name
*
.whl
`
for
target
in
$sdist
$wheel
;
do
python
-m
venv test.venv
.
test.venv/bin/activate
pip
install
--upgrade
pip setuptools
pip
install
$target
deactivate
rm
-r
test.venv
done
.gitlab-ci.yml
View file @
2aad7422
stages
:
-
test
-
build
test:3.7:
stage
:
test
...
...
@@ -30,3 +31,13 @@ test:3.9:
script
:
-
bash ./.ci/unit_tests.sh
build:dist:
stage
:
build
image
:
python:3.8
tags
:
-
docker
script
:
-
bash ./.ci/build_dist.sh
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment