Skip to content

Commit 02a4476

Browse files
author
Alan Christie
committed
- Back to earlier trravis file
1 parent eea7804 commit 02a4476

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

.travis.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ os:
1616
# (`test` is basically a travis default default so we don't need to name it).
1717
# But we do want a `deploy` stage that only runs if the the commit is tagged
1818
# (with a label that begins `pypi-` and it's on the master branch).
19-
# Our tags for PyPI distributions will be of the form `pypi-1.0.1`.
19+
# Our tags for PyPI distributions will be of the form `pypi-1.0.1`.
2020
stages:
2121
- name: test
2222
if: not tag is present
2323
- name: deploy
24+
if: tag =~ ^pypi*$ and branch = master
2425

2526
# Run Travis on all branches
26-
# (normally it only runs on master)
27+
# (normally it only runs on master)
2728
branches:
2829
only:
2930
- "/.*/"
@@ -45,7 +46,7 @@ script:
4546

4647
# Execution jobs.
4748
# Let's run the script against various Python versions
48-
# and then move to our deploy stage. Travis will only run the deploy stage
49+
# and then move to our deploy stage. Travis will only run the deploy stage
4950
# when the test stages have passed. Deployment will also only execute
5051
# if this triggering commit is tagged and we're on the master branch.
5152
jobs:
@@ -54,15 +55,18 @@ jobs:
5455
- python: 3.5
5556
- python: 3.6
5657

57-
before_deploy:
58-
- cd ${TRAVIS_BUILD_DIR}/src/python
59-
60-
deploy:
61-
on:
62-
branch: master
63-
condition: $TRAVIS_TAG =~ ^pypi*$
64-
provider: pypi
65-
user: informaticsmatters
66-
password:
67-
secure: "FgNbSAEtomSpBwIF26CXF1f+8z4FWAYVC6aae5ZTTRvUA9rjhj64OKzdxe4hRYnrw4PLk615wNbJSwDm4NQds8hX2MJxwSa+oLOdwuDXq4dYikJuT1YIaMgNAKN+gjLNEf+vSpLDbyG8QIJgLgjEHVx5rxNrvGglXPg52jN1mVZvoL79UXgHzjFmlG0UuaU5AEUL57Sv9NX5iOUAdHWr+v5hNmeAq0Nz92e4O2byLoizCsdbPd20K9P56aL/Lo/hwO1mVcR5BLz2/oQBynMiQGlp+yrg+lbxc3HSYUaM/hMvwK08Y5ITkQzoqNoClyeuw43FsqInvs8DjGRFCZNOpf1gWSNY7bHjIUvCqVLPZu5Cd76B0SQCd8guFwDawOc0HWKc1g7P1XZ3h2BH6XkiPohJT2zSdYboRwSHY658dobJXcj5Q4ZUp73qhRoKb/8XXVUzQwYCp2Hp3dRvuGjJXVCb5VX4VzJQXJqMHjK8+Z0QzPvN+YOoAEFgE3Yxjykov3TeSs+AHdLTHq9osWv/zAPGSVxzBjgFnUp8qT8iwz5gPlYqukHudvQx2nJAH73CVSDJYCiecYqVFdPxFw7xCg2MYCqlrlvONMsSEPGssyngX8gKzrSQxmunCf3r0QzHl9/mXvndHEOQyI1NmzNHPB8+FItYT1UlOnIcr9eOC8k="
68-
distributions: bdist_wheel
58+
- stage: deploy
59+
python: 3.6
60+
# No need to re-run scripted commands here.
61+
# They're all part of the above test stages.
62+
script: skip
63+
# Our module and setup.py is not located in the root of the project.
64+
# Move to it before we deploy.
65+
before_deploy:
66+
- cd ${TRAVIS_BUILD_DIR}/src/python
67+
deploy:
68+
provider: pypi
69+
user: informaticsmatters
70+
password:
71+
secure: "FgNbSAEtomSpBwIF26CXF1f+8z4FWAYVC6aae5ZTTRvUA9rjhj64OKzdxe4hRYnrw4PLk615wNbJSwDm4NQds8hX2MJxwSa+oLOdwuDXq4dYikJuT1YIaMgNAKN+gjLNEf+vSpLDbyG8QIJgLgjEHVx5rxNrvGglXPg52jN1mVZvoL79UXgHzjFmlG0UuaU5AEUL57Sv9NX5iOUAdHWr+v5hNmeAq0Nz92e4O2byLoizCsdbPd20K9P56aL/Lo/hwO1mVcR5BLz2/oQBynMiQGlp+yrg+lbxc3HSYUaM/hMvwK08Y5ITkQzoqNoClyeuw43FsqInvs8DjGRFCZNOpf1gWSNY7bHjIUvCqVLPZu5Cd76B0SQCd8guFwDawOc0HWKc1g7P1XZ3h2BH6XkiPohJT2zSdYboRwSHY658dobJXcj5Q4ZUp73qhRoKb/8XXVUzQwYCp2Hp3dRvuGjJXVCb5VX4VzJQXJqMHjK8+Z0QzPvN+YOoAEFgE3Yxjykov3TeSs+AHdLTHq9osWv/zAPGSVxzBjgFnUp8qT8iwz5gPlYqukHudvQx2nJAH73CVSDJYCiecYqVFdPxFw7xCg2MYCqlrlvONMsSEPGssyngX8gKzrSQxmunCf3r0QzHl9/mXvndHEOQyI1NmzNHPB8+FItYT1UlOnIcr9eOC8k="
72+
distributions: bdist_wheel

0 commit comments

Comments
 (0)