forked from lk-geimfari/mimesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·110 lines (90 loc) · 2.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
language: python
sudo: false
matrix:
include:
- os: linux
sudo: required
python: "3.6"
dist: trusty
name: "Python 3.6 on Linux"
- os: linux
sudo: required
python: "3.7"
dist: xenial
name: "Python 3.7 on Linux"
- os: linux
sudo: required
python: "3.8"
dist: xenial
name: "Python 3.8 on Linux"
- os: osx
language: generic
env: PYTHON=3.6.8
name: "Python 3.6 on macOS"
- os: osx
language: generic
env: PYTHON=3.7.5
name: "Python 3.7 on macOS"
- os: osx
language: generic
env: PYTHON=3.8.0
name: "Python 3.8 on macOS"
- os: windows
language: shell
before_install:
- choco install python3 --version 3.6.8
- python -m pip install --upgrade pip
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
name: "Python 3.6 on Windows 10"
- os: windows
language: shell
before_install:
- choco install python3 --version 3.7.5
- python -m pip install --upgrade pip
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
name: "Python 3.7 on Windows 10"
- os: windows
language: shell
before_install:
- choco install python3 --version 3.8.0
- python -m pip install --upgrade pip
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
name: "Python 3.8 on Windows 10"
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 == "linux"
notifications:
email:
on_success: never
on_failure: change