forked from python-cachier/cachier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
107 lines (107 loc) · 4.09 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
language: python
# ===== Linux ======
dist: xenial
python:
- 3.6
- 3.7
- 3.8
- "3.6-dev"
- "3.7-dev"
- "3.8-dev"
- "3.9-dev"
matrix:
fast_finish: true # allows to determine results when linux builds finish, without waiting for osx and windows builds
allow_failures:
- python: "3.6-dev"
- python: "3.7-dev"
- python: "3.8-dev"
- python: "3.9-dev"
# - os: osx
# - os: windows
include:
# ======= OSX ========
# - name: "Python 3.6.5 on macOS 10.13"
# os: osx
# osx_image: xcode9.4 # Python 3.6.5 running on macOS 10.13
# language: shell # 'language: python' is an error on Travis CI macOS
# before_install:
# - python3 --version
# - pip3 install -U pip
# - pip3 install -U pytest
# - pip3 install codecov
# install:
# - pip3 install ".[test]"
# script: python3 -m pytest
# after_success: python 3 -m codecov
- name: "Python 3.7.5 on macOS 10.14"
os: osx
osx_image: xcode10.2 # Python 3.7.5 running on macOS 10.14.3
language: shell # 'language: python' is an error on Travis CI macOS
before_install:
- python3 --version
- pip3 install -U pip
- pip3 install -U pytest
- pip3 install codecov
install:
- pip3 install ".[test]"
script: python3 -m pytest
after_success: python3 -m codecov
- name: "Python 3.8.0 on macOS 10.14"
os: osx
osx_image: xcode11.3 # Python 3.7.3 running on macOS 10.14.3
language: shell # 'language: python' is an error on Travis CI macOS
before_install:
- python3 --version
- pip3 install -U pip
- pip3 install -U pytest
- pip3 install codecov
install:
- pip3 install ".[test]"
script: python3 -m pytest
after_success: python3 -m codecov
# ====== WINDOWS =========
- name: "Python 3.6.8 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.6.8
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pytest
- pip3 install codecov
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
- name: "Python 3.7.4 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.7.4
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pytest
- pip3 install codecov
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install:
- python --version
- pip install -U pip
- pip install -U pytest
- pip install codecov
- pip install pymongo
install:
- echo $TRAVIS_OS_NAME
- pip install ".[test]"
# - if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ] && ["$TRAVIS_OS_NAME" == "linux"]; then pip install coverage pytest-cov .; else pip install ".[test]"; fi
script: pytest
after_success:
- codecov # submit coverage to codecov.io
# deploy:
# provider: pypi
# user: shaypal5
# password:
# secure: RaTkue2YoXAkT/byvecFuOYdrJpHchCSMYnV4xqUFhQgT8qbyv7/EL+pm6sQ75Ni/JKAhSBdW8l4faKY9X1vW3yc5E2YHBf/81VJo1+JAbD9vGX0RLZbDzIsEVht+hL2Xxvab5Xh3fI7Pcr+cozKKMZxcOvEEwGo5DENM4CquGLeYyUxQOyhwSVjA+54bucFm+u+BA0QxUSHSyFy0cPKJVi8jNMSK/XAvs+Zk26o/MOU3udSj25FBtTkqPTBphaUNkt2EPGK1ZWkS9uhqs+hrETMWj6n6k49WblXvMDJiUtCIM+36Q+GBH/9UxCWuMOjL+uRFjVwwKQEcend9YMvp4+jRZ1HsLAWjMMhazxgkZ6M7bErHRxyabb7om+5IMptPdIo31gw8S1dKktGyuiSVYqs9X2mGA//SoItoDjIAUI81TQ3s2QLw5SfyEARfAdN+QS2aRaZHc0RPcLb10xNu7d7cy/4I88W+dptNqVABCP26Jlg4xsrRGMnONMSt/kWg1enXfgSXJcyrqqAaZzQUs/5QmVGtU4DBl3C8pUiHs6eGdpcqO3vpYoHveNT0WzoONkqZBvzBOjUWf8oMJzI3LcmCruUtktyd9cnlzM49pndnCyXPIKcpqPSGtR0FS3I/QhP7RBB+5xjP39SIuFsEW6ciakOs+AdMePl8tAq01o=
# distributions: sdist bdist_wheel
# on:
# all_branches: true
# tags: true
# repo: shaypal5/cachier
# condition: $TRAVIS_PYTHON_VERSION = "3.5"
# skip_upload_docs: true