Skip to content

Commit

Permalink
build: chore
Browse files Browse the repository at this point in the history
Signed-off-by: Sorin Sbarnea <sorin.sbarnea@gmail.com>
  • Loading branch information
ssbarnea committed Jul 9, 2018
1 parent 9fa516b commit 92e1892
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
20 changes: 9 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
language: python
# sudo required only till https://github.com/travis-ci/travis-ci/issues/9848 is fixed
sudo: required
cache:
- pip
- directories:
Expand All @@ -24,11 +22,11 @@ before_install:
# - if [[ $TRAVIS_PYTHON_VERSION == '3.7-dev' ]]; then sudo add-apt-repository ppa:deadsnakes/ppa -y; fi
# - if [[ $TRAVIS_PYTHON_VERSION == '3.7-dev' ]]; then sudo apt-get update; fi
# sudo required only till https://github.com/travis-ci/travis-ci/issues/9848 is fixed
- sudo pip install -U pip setuptools twine wheel
# - sudo pip install -U pip setuptools twine wheel
# ^ end workaround
- nvm install $TRAVIS_NODE_VERSION
# end
- which tox >/dev/null || if [ -z ${VIRTUAL_ENV+x} ]; then pip install --user tox tox-pyenv ; else pip install tox tox-pyenv; fi
- 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
notifications:
email:
- pycontribs@googlegroups.com
Expand Down Expand Up @@ -73,13 +71,12 @@ jobs:
after_success:
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
- stage: test
script: pip install -q tox-travis && python -m tox
script: python -m pip install -q tox-travis && python -m tox
python: "3.7"
env: TOXENV=py37 PYTHON='3.7'
after_success:
- bash <(curl -s https://codecov.io/bash) -e TOX_ENV
# begin: workaround to enable support for py37:
sudo: required
# begin: workaround to enable support for py37: https://github.com/travis-ci/travis-ci/issues/9815
dist: xenial
# end
- stage: deploy
Expand All @@ -90,17 +87,19 @@ jobs:
deploy:
- provider: pypi
user: pycontribs
password:
secure: "CmBFcxAT3IAWpnqe9eFmfHfbPBvayGMNLC+P+9KKUGaf+k7vnIYB11vNNCYUrm/jVOR12szWAcGoUQMkUQrWcrShEidsYENOdreJnasZp0I+2uMbMFw1v2Mn7Kyiilv1q/m1G05cH3ls863SBIxOARoN/Ce24vhVgg3BO+GpoP8="
distributions: sdist bdist_wheel
skip_cleanup: true
# https://github.com/travis-ci/dpl/pull/834
edge:
source: ssbarnea/dpl
branch: master
on:
tags: true
branch: master
repo: pycontribs/jira
- provider: releases
api_key:
secure: G19YtkGAX0aJ1oyd/7eRj1KYdsmAkjkfU2UISvsjh/68ec1+9qtPpN7BbkFYZYMjSx0BtS0SEEA7Vdl4F9DI9Zzqahbj7WzDLFe9/4aZKM/ztfKWR6CNAYaMazAKS5W7r9pPkBBDIIJ9zCqvV7FRzjewEpfTwFzwUdY+IpxEsAM=
secure: YJGigSNYOzMJqs23gIZLFxiVYRqHdV4WsTZmRVosishD2QIaDlTwJma7k6Y5eMPVNdLpqo7Tq6bt7xkJAz/dcr3UO35T/Y0tiRFFW3sd6IOB6ELwSwPhSeHoyUMvZtKyDTl+9tOfeZusFZuCc+mBLQcG+S2NzEaeyrQ6n5hTT/8FGBP91FOq9l5q2gYbmACZ9MisDIjZkTHNYih36ComnZ9QHC91jHKcSuHmOfWWX3GneDVFtuPhF2vjaLQrz8IFtWGW5Sfe35yDYlVQRH+NFxzSJ2zDuT5j8cRgwXjGout78umtMsqAn+zv1Ws/MUNKMTEtONsACndMpGCkuB6Nifl/KcGj5kD7V4PO/gE0ecr830qAwJxSVB7xk6rl797nMxGbr4w2DWQ/iDdHDTlPAEzbLBMLrMRgPxzKPgg5CNxxjT1cHoBNcFPp6gaf017w4XOVUgp/zxXeCg7iGiNJj7z2t8/m9eYVNNlNRPcodN6BjSjPqkYxC3ZMVCI5KsRXbHmR0zOWbPdcRjrY/IgbiTqX09sHotHw5GThP6YTMbienC4h93cdx6MEfX656W6XMOxpC+MjWtYuV8QlfMEJFlstOnA86MVLcmbl+4A6FHuvlQMdDtP9KsKdKIf/4juGhNEFir32P1rUe8J1abmjwXmDkHVbli0SDqaFtB5gyCc=
file:
- dist/$PACKAGE_NAME-$PACKAGE_VERSION.tar.gz
- dist/$PACKAGE_NAME-$PACKAGE_VERSION-py2.py3-none-any.whl
Expand All @@ -112,7 +111,6 @@ deploy:
branch: master
env:
global:
- secure: fuXwQL+KHQ96XkAFl2uQc8eK8dAjrgkup46tck/UGjVpdv1PT/yHmBKrvpFjDa50ueGbtBwTdKAwhyAmYuiZCk2IYHzdvBylCZBBji2FSpaTM59CVwgkVT6tx3HHO83X0mEX6ih9TJvZD5XhX+YUjopnseRXRq3ey3JZJXWN4RM=
- secure: "pGQGM5YmHvOgaKihOyzb3k6bdqLQnZQ2OXO9QrfXlXwtop3zvZQi80Q+01l230x2psDWlwvqWTknAjAt1w463fYXPwpoSvKVCsLSSbjrf2l56nrDqnoir+n0CBy288+eIdaGEfzcxDiuULeKjlg08zrqjcjLjW0bDbBrlTXsb5U="
- PIP_DISABLE_PIP_VERSION_CHECK=1
- TRAVIS_NODE_VERSION="v8.11.3"
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ifneq (,$(findstring conda, $(PYTHON_VERSION)))
CONDA := $(CONDA_DEFAULT_ENV)
endif

PREFIX := ""
PREFIX :=
ifndef GIT_BRANCH
GIT_BRANCH=$(shell git branch | sed -n '/\* /s///p')
endif
Expand Down Expand Up @@ -88,7 +88,7 @@ testspace:

lint:
@echo "INFO: linting...."
$(PREFIX)python -m flake8
$(PREFIX)tox -e lint

test: prepare lint
@echo "INFO: test"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ignore =
# TODO(ssbarnea): remove ignored flake8 rules one by one by fixing them.

[pep8]
exclude=build,lib,.tox,third,*.egg,docs,packages,.eggs
exclude=build,lib,.tox,third,*.egg,docs,packages,.eggs,node_modules
;filename=
;select
ignore=E501,E265,E402
Expand Down

0 comments on commit 92e1892

Please sign in to comment.