This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 513
/
.travis.yml
80 lines (67 loc) · 1.91 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
notifications:
email: false
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "pypy"
addons:
apt:
packages:
- libenchant-dev
- aspell-en
- aspell-da
- aspell-de
- aspell-es
- aspell-fr
- aspell-nl
- aspell-pt
- aspell-ru
matrix:
allow_failures:
- python: pypy
sudo: false
cache:
- apt
- pip
services:
- mongodb
env:
- REQUIREMENTS=lowest
- REQUIREMENTS=release
before_install:
- "travis_retry pip install --upgrade pip setuptools"
- "travis_retry pip install twine wheel coveralls requirements-builder"
- "requirements-builder -e all --level=min setup.py > .travis-lowest-requirements.txt"
- "requirements-builder -e all --level=pypi setup.py > .travis-release-requirements.txt"
- |
if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
export PYENV_ROOT="$HOME/.pyenv"
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
cd "$PYENV_ROOT" && git pull
else
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
fi
export PYPY_VERSION="4.0.1"
"$PYENV_ROOT/bin/pyenv" install "pypy-$PYPY_VERSION"
virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
fi
install:
- "pip install -r .travis-${REQUIREMENTS}-requirements.txt"
- "pip install -e .[all]"
script: python setup.py test
after_script:
- coveralls
deploy:
provider: pypi
user: jirikuncar
password:
secure: T3MDbWnfl5wauHxd8hyKcBLCTPKLiBX8aK0iq99ExswN3WrwQrpxYWmC9oiDh7uF+d5u7n3e6t0566R6eV2kXd3juwc89ZwPJEY6T+B7nAEl9Qn+N/f5g47dq66dwwmAm44po8zUN+Q2lt0neCwF9Mv1SDV5vg+jpFGpvARapdY=
distributions: "compile_catalog sdist bdist_wheel"
on:
repo: mattupstate/flask-security
tags: true
python: "2.7"
condition: $REQUIREMENTS = release