-
Notifications
You must be signed in to change notification settings - Fork 30
/
.travis.yml
37 lines (35 loc) · 976 Bytes
/
.travis.yml
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
30
31
32
33
34
35
36
37
os: osx
osx_image: xcode9.2
language: generic
branches:
only:
- master
- /^v\d.*/
env:
- TOXENV=py2 PYTHON=python2
- TOXENV=py2-flake8 PYTHON=python2
- TOXENV=py3 PYTHON=python3
before_install:
- brew update
install:
- brew ls $PYTHON || brew install $PYTHON
- $PYTHON -m pip install tox coverage coveralls
- if [ $PYTHON == "python2" ]; then ln -fs /usr/local/bin/python2 /usr/local/bin/python; ln -fs /usr/local/bin/pip2 /usr/local/bin/pip; fi
- sudo mkdir -p /usr/local/man && sudo chown $USER /usr/local/man
before_script:
- umask 0022
script:
- tox
after_success:
- coverage combine
- coveralls
deploy:
provider: pypi
user: tdsmith
password:
secure: aMbgpTpEpojo1OYq8JDhg3Qgo3/c5BoKGeHwm0UJ070kn7sR3K4zwsQ1ybq9DsM6oL+Nv9vAfbyyQmHyuDf0OoXt0nEPR/vkbwURrrXONmQ5NUvLULnQTdfwvNbHY3TaQlTbrloCVhr5CECDKckd+6SHcJDfjwsSaVK0wSWNq8Y=
distributions: "sdist bdist_wheel"
on:
tags: true
repo: tdsmith/homebrew-pypi-poet
condition: $TOXENV = py2