forked from reubano/pygogo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
89 lines (75 loc) · 2.82 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
80
81
82
83
84
85
86
87
88
89
sudo: false
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "pypy"
- "pypy3"
cache:
directories:
- ~/.cache/pip
env:
global:
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
- PYTHONHASHSEED=94967295
- PYPY_GIT=https://github.com/yyuu/pyenv.git
- PYENV_ROOT=$HOME/.pyenv
- PYPY_VENV=$HOME/virtualenvs/pypy
- PYPY_PATH=$PYENV_ROOT/versions/pypy
- PYPY_VERSION=5.1.1
notifications:
email:
on_success: always
branches:
except:
- /^v[0-9]/
before_install:
- pip install -U pip
- pip install wheel
- |
if [[ "$TRAVIS_PYTHON_VERSION" == "pypy" ]]; then
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
pushd "$PYENV_ROOT" && git pull && popd
else
rm -rf "$PYENV_ROOT" && git clone --depth 1 "$PYPY_GIT" "$PYENV_ROOT"
fi
"$PYENV_ROOT/bin/pyenv" install --skip-existing "pypy-$PYPY_VERSION"
PYTHON="$PYPY_PATH-$PYPY_VERSION/bin/python"
virtualenv --python="$PYTHON" "$PYPY_VENV-$PYPY_VERSION"
source "$PYPY_VENV-$PYPY_VERSION/bin/activate"
fi
- |
if [ "$TRAVIS_PYTHON_VERSION" = "pypy3" ]; then
export PYPY_VERSION="2.4.0"
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
pushd "$PYENV_ROOT" && git pull && popd
else
rm -rf "$PYENV_ROOT" && git clone --depth 1 "$PYPY_GIT" "$PYENV_ROOT"
fi
"$PYENV_ROOT/bin/pyenv" install --skip-existing "pypy3-$PYPY_VERSION"
virtualenv --python="${PYPY_PATH}3-$PYPY_VERSION/bin/python" "${PYPY_VENV}3-$PYPY_VERSION"
source "${PYPY_VENV}3-$PYPY_VERSION/bin/activate"
fi
install:
- pip install -r dev-requirements.txt
- |
if [[ $TRAVIS_PYTHON_VERSION != *"3"* ]]; then
pip install -r py2-requirements.txt
fi
script:
- manage lint
- manage test
after_success:
- if [[ "$TRAVIS_PULL_REQUEST" == "true" ]]; then exit 0; fi
- if [[ "$TRAVIS_BRANCH" != "master" ]]; then exit 0; fi
- if [[ "$TRAVIS_PYTHON_VERSION" != "2.7" ]]; then exit 0; fi
deploy:
provider: pypi
user: reubano
password:
secure: N7MPQIBC8UbFhlQtxuNmYJuApcxnDwK3eVD8LN1mP5gtVQjZ82g5sRFcsOmQPgAGSVhSSgdaU63XfXiIDT+62Z9wm+I1eS5eZJ1pGbiqdM7RMUDsfthkRvl5Rret2RgJa5yd8UifDtEPThdbNot7soAfeIq2fnL1jnGG9dw0ffmoh0HQaHnvbAq8aVvAdrp4/KhkvhsKFKcKvAFOJKnw5E0N0ZTuPQk+kxKBlOC7qI8Zy8WY/+pdYHFk0PHQw05Sl/aX5OkQ44Tx6DhQX8gZepQGWfbTpz9m14n1wnJJnXQp+shby3N+0/yiT7KEeQP5YxlFOubSZm5IsuqyWnmm7vIry8Zz8oXn3IadWhoWcUtNJZVvF5rKRJV9V4lU16gj0z06iLJj/U67qEcWy+EufcS6TcxYvTsYzbMfbG1Z4sWEZZySJEqO8oGDMezt+XCGcQoZpJs5hrt8a4KJ1zYHyAJTXeLPce7clFGKFEXOQQiS1tBif6AjVSTWJdj0DEs0xXpk4x9q0/cza7Q+2K7fIFxkntGBfkbdUSL5/INBZ0ph0OGQ/fnTtHnvymx5N4+kqYNCuXxCyWeFzcwEN43G+lMeNlZ6Hj3aYqMYWg/Ji6txNdf6v3ERq0jxEKmdQAoRNMqIQZbozUeFFrOvH2cIQCQFthIHjr1petll71lAzcg=
distributions: sdist bdist_wheel
on:
tags: true