-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
54 lines (48 loc) · 1.99 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
language: python
sudo: false
branches:
only:
- master
- /^\d\.\d+/
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 2.7
env: TOXENV=pypy
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: 3.6
env: TOXENV=py36
install:
- |
if [ "$TOXENV" = "pypy" ]; then
export PYENV_ROOT="$HOME/.pyenv"
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
pushd "$PYENV_ROOT" && git pull && popd
else
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
fi
# get latest portable PyPy from pyenv directly (thanks to natural version sort option -V)
export PYPY_VERSION=`"$PYENV_ROOT/bin/pyenv" install --list |grep -o -E 'pypy-portable-[0-9][\.0-9]*$' |sort -V |tail -1`
"$PYENV_ROOT/bin/pyenv" install --skip-existing "$PYPY_VERSION"
virtualenv --python="$PYENV_ROOT/versions/$PYPY_VERSION/bin/python" "$HOME/virtualenvs/$PYPY_VERSION"
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
fi
- pip install -U pip tox codecov
script: tox
after_success:
- codecov
deploy:
provider: pypi
user: "lopuhin"
password:
secure: "dTm1M3TSQ17BbVbjuahnxQgCIWLs8/Q+UMIAOssc4NNhcVs8jmyaqL/MMx8rWAToOkbnzwCmtwANvZh628EfW9u5tF+boGCZEl5UeyWPIRpjtv8hozN9DgeDuEEVtwHDaLBZMvxiUr5WObvphssoX6jjXUKPBsddFkB2RCXKhhJwnsAg7vvvzTWUkAbQezDDVLHyD/ksSzVmuP+CnRjvDqTBp73npS79toziRHA4bo9JTAHOHCgYXeMfGC3cR/Y/FnymciOzRiVwiS1t22NHrFvikWE9o5fuEmRob1T+7E85hD18bVbSmeAUTN0YQNduViTdewO4vsnlsWN1f+iHjHn9v4nT1R1HQpUoyY2YQmaSSAiAv/GQWyJm2Cuh8F9HAPELrD0b0xdTj3cAdqa1EThG1pMaAcc0/KXG/MzVolgwGOSJMXu6CGk95b8OnNj5Ah87ulMYcFAPBpctmyw3PX6IUwDsBrGRTcUdylCjuEAgmLWtLbfcNj0KlRS66mQIQFupVJe9/Ef6X2SBegK+aTYWP4oGlrsoSQmOu9sfdAljsNqI1DXQvxh9SFaTy+Kchdpj5ekVgIg9j4Y52uns5C6EzfYDwSRXlq4YuMUI7fpjSTqr8PQ/Fi/IvZ063AjK9Fje+QOuRDlQi149HCMwsB+9tvcu0rBnC82tsm5AoXk="
on:
tags: true
condition: $TOXENV == py35
cache:
directories:
- $HOME/.cache/pip