forked from httpie/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
79 lines (65 loc) · 1.53 KB
/
.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
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
# https://travis-ci.org/jkbrzt/httpie
sudo: false
language: python
os:
- linux
env:
global:
- NEWEST_PYTHON=3.5
python:
- 2.6
- 2.7
- pypy
- 3.4
- 3.5
- pypy3
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=py35
- 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
fi
script:
- |
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
make
else
PATH="/usr/local/bin:$PATH" tox -e "$TOXENV"
fi
after_success:
- |
if [[ $TRAVIS_PYTHON_VERSION == $NEWEST_PYTHON && $TRAVIS_OS_NAME == 'linux' ]]; then
pip install python-coveralls && coveralls
fi
notifications:
webhooks:
urls:
# https://gitter.im/jkbrzt/httpie
- https://webhooks.gitter.im/e/c42fcd359a110d02830b
on_success: always # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: always # options: [always|never|change] default: always