This repository has been archived by the owner on Dec 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.travis.yml
54 lines (53 loc) · 2.31 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
cache: pip
jobs:
allow_failures:
- os: windows
- os: osx
include:
- name: "Python 3.6.0 on Xenial Linux"
os: linux
dist: xenial
python: 3.6
before_install:
- python3.6 -m pip install dataclasses
- name: "Python 3.7.0 on Bionic Linux"
dist: bionic
python: 3.7
- name: "Python 3.8.0 on Bionic Linux"
dist: bionic
python: 3.8 # this works for Linux but is ignored on macOS or Windows
- name: "Python 3.7.4 on macOS"
os: osx
osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
language: shell # 'language: python' is an error on Travis CI macOS
addons:
homebrew:
update: true
packages: python3
before_install:
- python3 -m pip install --upgrade pytest pytest-cov codecov virtualenv
- virtualenv -p python3 --system-site-packages "$HOME/venv"
- source "$HOME/venv/bin/activate"
- name: "Python 3.8.0 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.8.0
- python -m pip install --upgrade pip
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
- stage: deploy
python: 3.7
script: skip
deploy:
provider: pypi
user: AlessioZanga
password:
secure: B6JGqiXI8b2dpEfhr+uwanH0/nzRhMff+swHVWAjEoBeQnIigq09FRqfJWEYjE5FNkKDQpmjOKJrDy3HCigMQwIIOHsE3MkftUeANfs6CizJsZgCgij2A+vK2rDP1w3OEaowjh//SDeX8YGWEBRoP2pdWIrE9EnpBC44BftWoZreHNKMYXOnNrk4tUDjNz0gFoy0v0mSMqdWTcOxNqivLykKwKZ1kYFaRLo4WpTRo0KGDHYnBMTE5FnLjogBW9NjiymNRf4m6sEVPPoQBHkVFHFsfh6MB8qOC5cNzoiHv8VmfREBSatUHVxXrBBAC90gWEQAFgJRsF98ikWJznLmXOPvaJbXGvDYEPx6A4/DaBXiQjMPxTK41i/UsetM+CVVs8VfCmWa6oGGLvDKJP5LcZdSXM6vH/3DUoVwR8y3aGuB9aiol+F9HJKUdHavhISf9B5HtJNJA9EDnW0Gq4Bf7ggwgA6q2LTXWk3iwqn5qXDVFdzkWQOmt1nEtmA8GKPykTTsC6tdMLjS1w+ck+d1w7AziMY7nI+8APWbuZ3E+bXYsfRZsddbo+KDSZq97WfADxH7AFtEO4os/czIUtG/4y1wTTEMdCMR/sEZ2eK1uPTB5n4jhoeWGKRz3hkXBAcje7VvPdio+c+gIvco9enbtd1UfEyLosC0co5KtdFqdIg=
on:
branch: master
install:
- pip3 install -r requirements.txt
- pip3 install .
- pip3 install pytest-cov codecov
script: travis_wait 30 pytest --cov=./ && codecov