Skip to content

Commit cad4928

Browse files
committed
First attempt at using deployment
1 parent 8dcf942 commit cad4928

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.gitlab-ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
stages:
22
- tests
3-
# - deployment
3+
- deployment
44

55
image: python:3.5-slim-jessie
66

@@ -35,12 +35,14 @@ tests:
3535
- tests/fastStructure_field_test.sh
3636
- tests/maverick_field_test.sh
3737

38-
# deployment:
39-
# stage: deployment
40-
# script:
41-
# - python -V
42-
# - pip install virtualenv
43-
# - virtualenv venv
44-
# - source venv/bin/activate
45-
# - python setup.py sdist upload -r pypi
38+
deployment:
39+
stage: deployment
40+
script:
41+
- python -V
42+
- pip install virtualenv
43+
- virtualenv venv
44+
- source venv/bin/activate
45+
- pip install twine
46+
- python setup.py sdist
47+
- twine upload dist/* -u Stunts -p $pypi_password --repository-url https://test.pypi.org/legacy/
4648
# Make sure this only happens in `master`

0 commit comments

Comments
 (0)