Skip to content

Commit 5bd01e4

Browse files
committed
build: chore
Signed-off-by: Sorin Sbarnea <[email protected]>
1 parent 9fa516b commit 5bd01e4

File tree

3 files changed

+41
-41
lines changed

3 files changed

+41
-41
lines changed

.travis.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
language: python
3-
# sudo required only till https://github.com/travis-ci/travis-ci/issues/9848 is fixed
4-
sudo: required
53
cache:
64
- pip
75
- directories:
@@ -24,17 +22,17 @@ before_install:
2422
# - if [[ $TRAVIS_PYTHON_VERSION == '3.7-dev' ]]; then sudo add-apt-repository ppa:deadsnakes/ppa -y; fi
2523
# - if [[ $TRAVIS_PYTHON_VERSION == '3.7-dev' ]]; then sudo apt-get update; fi
2624
# sudo required only till https://github.com/travis-ci/travis-ci/issues/9848 is fixed
27-
- sudo pip install -U pip setuptools twine wheel
25+
# - sudo pip install -U pip setuptools twine wheel
2826
# ^ end workaround
2927
- nvm install $TRAVIS_NODE_VERSION
3028
# end
31-
- which tox >/dev/null || if [ -z ${VIRTUAL_ENV+x} ]; then pip install --user tox tox-pyenv ; else pip install tox tox-pyenv; fi
29+
- which tox >/dev/null || if [ -z ${VIRTUAL_ENV+x} ]; then python -m pip install --user tox tox-pyenv ; else python -m pip install tox tox-pyenv; fi
3230
notifications:
3331
email:
3432
3533
jobs:
3634
include:
37-
- stage: lint
35+
- stage: phase1
3836
script:
3937
- python -m tox
4038
- npm install && npm run spell
@@ -43,76 +41,78 @@ jobs:
4341
language: nodejs
4442
node_js:
4543
- "8"
46-
- stage: docs
44+
- stage: phase1
4745
script: python -m tox
4846
python: "2.7"
4947
env: TOXENV=docs
50-
- stage: test
48+
- stage: phase1
5149
script: python -m tox
5250
python: "2.7"
5351
env: TOXENV=py27
5452
after_success:
5553
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
5654
- requires.io update-site -t ac3bbcca32ae03237a6aae2b02eb9411045489bb -r
57-
- stage: test
55+
- stage: phase2
5856
script: python -m tox
5957
python: "3.4"
6058
env: TOXENV=py34
6159
after_success:
6260
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
63-
- stage: test
61+
- stage: phase2
6462
script: python -m tox
6563
python: "3.5"
6664
env: TOXENV=py35
6765
after_success:
6866
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
69-
- stage: test
67+
- stage: phase2
7068
script: python -m tox
7169
python: "3.6"
7270
env: TOXENV=py36 PYTHON='3.6' PYENV_VERSION='system'
7371
after_success:
7472
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
75-
- stage: test
76-
script: pip install -q tox-travis && python -m tox
73+
- stage: phase2
74+
script: python -m pip install -q tox-travis && python -m tox
7775
python: "3.7"
7876
env: TOXENV=py37 PYTHON='3.7'
7977
after_success:
8078
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
81-
# begin: workaround to enable support for py37:
82-
sudo: required
79+
# begin: workaround to enable support for py37: https://github.com/travis-ci/travis-ci/issues/9815
8380
dist: xenial
81+
sudo: required
8482
# end
8583
- stage: deploy
8684
script:
8785
- export PACKAGE_NAME=$(python setup.py --name)
8886
- export PACKAGE_VERSION=$(python setup.py --version)
8987
- python setup.py sdist bdist_wheel
90-
deploy:
91-
- provider: pypi
92-
user: pycontribs
93-
password:
94-
secure: "CmBFcxAT3IAWpnqe9eFmfHfbPBvayGMNLC+P+9KKUGaf+k7vnIYB11vNNCYUrm/jVOR12szWAcGoUQMkUQrWcrShEidsYENOdreJnasZp0I+2uMbMFw1v2Mn7Kyiilv1q/m1G05cH3ls863SBIxOARoN/Ce24vhVgg3BO+GpoP8="
95-
distributions: sdist bdist_wheel
96-
skip_cleanup: true
97-
on:
98-
tags: true
99-
branch: master
100-
repo: pycontribs/jira
101-
- provider: releases
102-
api_key:
103-
secure: G19YtkGAX0aJ1oyd/7eRj1KYdsmAkjkfU2UISvsjh/68ec1+9qtPpN7BbkFYZYMjSx0BtS0SEEA7Vdl4F9DI9Zzqahbj7WzDLFe9/4aZKM/ztfKWR6CNAYaMazAKS5W7r9pPkBBDIIJ9zCqvV7FRzjewEpfTwFzwUdY+IpxEsAM=
104-
file:
105-
- dist/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz
106-
- dist/$PACKAGE_NAME-$PACKAGE_VERSION-py2.py3-none-any.whl
107-
- ChangeLog
108-
skip_cleanup: true
109-
on:
110-
tags: true
111-
repo: pycontribs/jira
112-
branch: master
88+
deploy:
89+
- provider: pypi
90+
user: pycontribs
91+
distributions: sdist bdist_wheel
92+
skip_existing: true
93+
skip_cleanup: true
94+
# https://github.com/travis-ci/dpl/pull/834
95+
edge:
96+
source: ssbarnea/dpl
97+
branch: master
98+
on:
99+
tags: true
100+
branch: master
101+
repo: pycontribs/jira
102+
- provider: releases
103+
api_key:
104+
secure: YJGigSNYOzMJqs23gIZLFxiVYRqHdV4WsTZmRVosishD2QIaDlTwJma7k6Y5eMPVNdLpqo7Tq6bt7xkJAz/dcr3UO35T/Y0tiRFFW3sd6IOB6ELwSwPhSeHoyUMvZtKyDTl+9tOfeZusFZuCc+mBLQcG+S2NzEaeyrQ6n5hTT/8FGBP91FOq9l5q2gYbmACZ9MisDIjZkTHNYih36ComnZ9QHC91jHKcSuHmOfWWX3GneDVFtuPhF2vjaLQrz8IFtWGW5Sfe35yDYlVQRH+NFxzSJ2zDuT5j8cRgwXjGout78umtMsqAn+zv1Ws/MUNKMTEtONsACndMpGCkuB6Nifl/KcGj5kD7V4PO/gE0ecr830qAwJxSVB7xk6rl797nMxGbr4w2DWQ/iDdHDTlPAEzbLBMLrMRgPxzKPgg5CNxxjT1cHoBNcFPp6gaf017w4XOVUgp/zxXeCg7iGiNJj7z2t8/m9eYVNNlNRPcodN6BjSjPqkYxC3ZMVCI5KsRXbHmR0zOWbPdcRjrY/IgbiTqX09sHotHw5GThP6YTMbienC4h93cdx6MEfX656W6XMOxpC+MjWtYuV8QlfMEJFlstOnA86MVLcmbl+4A6FHuvlQMdDtP9KsKdKIf/4juGhNEFir32P1rUe8J1abmjwXmDkHVbli0SDqaFtB5gyCc=
105+
file:
106+
- dist/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz
107+
- dist/$PACKAGE_NAME-$PACKAGE_VERSION-py2.py3-none-any.whl
108+
- ChangeLog
109+
skip_cleanup: true
110+
on:
111+
tags: true
112+
repo: pycontribs/jira
113+
branch: master
113114
env:
114115
global:
115-
- secure: fuXwQL+KHQ96XkAFl2uQc8eK8dAjrgkup46tck/UGjVpdv1PT/yHmBKrvpFjDa50ueGbtBwTdKAwhyAmYuiZCk2IYHzdvBylCZBBji2FSpaTM59CVwgkVT6tx3HHO83X0mEX6ih9TJvZD5XhX+YUjopnseRXRq3ey3JZJXWN4RM=
116116
- secure: "pGQGM5YmHvOgaKihOyzb3k6bdqLQnZQ2OXO9QrfXlXwtop3zvZQi80Q+01l230x2psDWlwvqWTknAjAt1w463fYXPwpoSvKVCsLSSbjrf2l56nrDqnoir+n0CBy288+eIdaGEfzcxDiuULeKjlg08zrqjcjLjW0bDbBrlTXsb5U="
117117
- PIP_DISABLE_PIP_VERSION_CHECK=1
118118
- TRAVIS_NODE_VERSION="v8.11.3"

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ifneq (,$(findstring conda, $(PYTHON_VERSION)))
1616
CONDA := $(CONDA_DEFAULT_ENV)
1717
endif
1818

19-
PREFIX := ""
19+
PREFIX :=
2020
ifndef GIT_BRANCH
2121
GIT_BRANCH=$(shell git branch | sed -n '/\* /s///p')
2222
endif
@@ -88,7 +88,7 @@ testspace:
8888

8989
lint:
9090
@echo "INFO: linting...."
91-
$(PREFIX)python -m flake8
91+
$(PREFIX)tox -e lint
9292

9393
test: prepare lint
9494
@echo "INFO: test"

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ignore =
8282
# TODO(ssbarnea): remove ignored flake8 rules one by one by fixing them.
8383

8484
[pep8]
85-
exclude=build,lib,.tox,third,*.egg,docs,packages,.eggs
85+
exclude=build,lib,.tox,third,*.egg,docs,packages,.eggs,node_modules
8686
;filename=
8787
;select
8888
ignore=E501,E265,E402

0 commit comments

Comments
 (0)