-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshippable.yml
More file actions
29 lines (25 loc) · 887 Bytes
/
shippable.yml
File metadata and controls
29 lines (25 loc) · 887 Bytes
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
language: python
python:
- 3.7
build:
cache: true
ci:
- '[ $EUID == 0 ] && SUDO="" || SUDO=sudo'
- $SUDO pip install pipenv
- pipenv install
- pipenv install Django
- pipenv install pytest-django
- pipenv run pytest --junitxml=shippable/testresults/junit.xml djangodemo/tests
- cd djangodemo
- echo creating distribution
- python setup.py sdist
- echo -e "[distutils]" >> ~/.pypirc
- echo -e "index-servers = nexusRepo" >> ~/.pypirc
- echo -e "[nexusRepo]" >> ~/.pypirc
- echo -e "username = admin" >> ~/.pypirc
- echo -e "password = letmein2" >> ~/.pypirc
- echo -e "repository = http://18.235.138.220:8081/repository/simple/" >> ~/.pypirc
- echo installing twine
- pip install twine
- echo upload archive to nexusRepo repo
- twine upload -r nexusRepo dist/*.gz