blob: 4291361cf33350008f8a9bb8015f961783c0dbb2 (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
# pypy3 seem to fail due to a bug on pypy3's curses
# - "pypy3"
env:
global:
- NEWEST_PYTHON=3.6
matrix:
include:
# Manually defined OS X builds
# https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages)
# Stock OSX Python
- os: osx
language: generic
env:
- TOXENV=py27
# Latest Python 2.x from Homebrew
- os: osx
language: generic
env:
- TOXENV=py27
- BREW_INSTALL=python
# Latest Python 3.x from Homebrew
- os: osx
language: generic
env:
- TOXENV=py36
- BREW_INSTALL=python3
install:
- |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
if [[ -n "$BREW_INSTALL" ]]; then
brew update
brew install "$BREW_INSTALL"
fi
sudo pip install tox
else
pip install -e .
pip install -r requirements-test.txt
fi
script:
- |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
PATH="/usr/local/bin:$PATH" tox -e "$TOXENV"
else
pytest
fi
after_success:
- |
if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then
pip install python-coveralls && coveralls
fi
deploy:
provider: pypi
user: eliang
password:
secure: "kLpnHTI1y//URpdGp2Cx/7zIdozgzUHwVXU6eOe0Jp/K6DlFLdPDvVODiUl1FY1aOgynMn3SiGQhUZrm1DrvF5g0w8wWXgqa1eJ/eyV1t8L8wUOQe/q2PSpgcjOzHNWuiY9MtZQ4oQEWPR6ITH4rf4G3NWMiJFFJ/qMVfKkMiLnzivmou2jlDS7g0mDVYLYe67IIx8I2ny5/5S0qBb9iaqAQqXP+9ngGQmoBJvC7Q1cj3f1NDPlG5YQmLEbjstyFgs3GsFr0eA+igSfie/U0bEngEpBe0C+FOqQTv6Vht2x+/m/CmwjNHeunEZfzJIzUVIem7zaIYssGSbQXHZi/Pn/Y5h6VMxI+uvE8jw5mRgiJWRYGNwiMYVK954szHVo88wwdQ3VPymDEaA+xyb3VGs6pOtSyB+4JaWsumiuzjF/9fXwpF0bEc5CgM6K8R7KKrk4FF0kgoE2EJVICewuQnrr+iE84X7+vFypTKmAv+23O8qec1lEENby6W0kwZvE88eV9QtYVemNly7ainTCltrbsHpyONrw/V83wNQBT3BRuBe8lPldF2rh6txF8RuOs9wBxeUg+2xCSd40fuTAyfPByf/HfTGSkgj65W4sWWJknpmweVkYeb9lz+gEB4gc3HvaREeugs8xQerCMqteCgbkHYpEmxaXwKA6mILhNilk="
on:
tags: true
repo: eliangcs/http-prompt
condition: "$TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux'"
distributions: "sdist bdist_wheel"
|