forked from lk-geimfari/mimesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·70 lines (56 loc) · 1.32 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
language: python
sudo: false
matrix:
include:
- os: linux
sudo: required
python: "3.6"
dist: trusty
- os: linux
sudo: required
python: "3.7"
dist: xenial
- os: osx
language: generic
env: PYTHON=3.6.6
- os: osx
language: generic
env: PYTHON=3.7.0
before_install: |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
brew install pyenv
brew install pyenv-virtualenv
pyenv install $PYTHON
export PYENV_VERSION=$PYTHON
export PATH="/Users/travis/.pyenv/shims:${PATH}"
pyenv-virtualenv venv
source venv/bin/activate
python --version
fi
install:
- pip install pipenv
- pipenv install --dev --ignore-pipfile
script:
- pipenv run py.test --cov=mimesis
- pipenv run mypy mimesis/ tests/
- pipenv run pyroma -d .
after_success:
codecov
before_deploy:
- python setup.py minify
- pipenv run check-manifest
- pipenv run python setup.py check --restructuredtext --strict
deploy:
provider: pypi
user: lk-geimfari
password: $SECURE_PASS
distributions: sdist bdist_wheel
on:
branch: master
tags: true
condition: $TRAVIS_PYTHON_VERSION = "3.6" && $TRAVIS_OS_NAME != "osx"
notifications:
email:
on_success: never
on_failure: change