Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit d4fe220

Browse files
Denys Smirnovdennwc
authored andcommitted
ci: write pypirc to home directory
Signed-off-by: Denys Smirnov <[email protected]>
1 parent e17b071 commit d4fe220

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.travis.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,16 @@ install:
2020
- pip3 install -r requirements.txt
2121
- python3 setup.py --getdeps --log
2222
- pip3 install . --upgrade
23-
- cd bblfsh && python3 -m unittest discover
23+
- cd bblfsh && python3 -m unittest discover && cd ..
2424
- if [[ -z "$TRAVIS_TAG" ]]; then exit 0; fi
2525
- if [[ $TRAVIS_PYTHON_VERSION != '3.6' ]]; then exit 0; fi # disable double uploads to pypi
26-
- echo "[distutils]" > .pypirc
27-
- echo "index-servers = " >> .pypirc
28-
- echo " pypi" >> .pypirc
29-
- echo "[pypi]" >> .pypirc
30-
- echo "username=$PYPI_USER" >> .pypirc
31-
- echo "password=$PYPI_PASS" >> .pypirc
32-
- cd ..
33-
- HOME=. python setup.py sdist upload
26+
- echo "[distutils]" > $HOME/.pypirc
27+
- echo "index-servers = " >> $HOME/.pypirc
28+
- echo " pypi" >> $HOME/.pypirc
29+
- echo "[pypi]" >> $HOME/.pypirc
30+
- echo "username=$PYPI_USER" >> $HOME/.pypirc
31+
- echo "password=$PYPI_PASS" >> $HOME/.pypirc
32+
- python setup.py sdist upload
3433
script:
3534
- python3 setup.py build_ext -i
3635
notifications:

0 commit comments

Comments
 (0)