forked from globus/globus-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
62 lines (61 loc) · 1.55 KB
/
Copy path.travis.yml
File metadata and controls
62 lines (61 loc) · 1.55 KB
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
sudo: false
dist: xenial
language: python
matrix:
include:
- python: "2.7"
env: TOXENV=py
# test on 3.5...3.8
- python: "3.5"
env: TOXENV=py
- python: "3.6"
env: TOXENV=py
# use py3.6 for linting build to support black, isort
- name: "lint (python: 3.6)"
python: "3.6"
env: TOXENV=lint
- name: "docs (python: 3.6)"
python: "3.6"
env: TOXENV=docs
- python: "3.7"
env: TOXENV=py
- python: "3.8"
env: TOXENV=py
- python: "pypy"
env: TOXENV=py
# non-Linux testing
# https://docs.travis-ci.com/user/languages/python/#running-python-tests-on-multiple-operating-systems
#
# Windows
- name: "py2 + windows"
os: windows
language: shell
env: TOXENV=py PATH=/c/Python27:/c/Python27/Scripts:$PATH
before_install:
- choco install python2
- python -m pip install --upgrade pip wheel
- name: "py3.8 + windows"
os: windows
language: shell
env: TOXENV=py PATH=/c/Python38:/c/Python38/Scripts:$PATH
before_install:
- choco install python3
- python -m pip install --upgrade pip wheel
# macOS
- name: "py2 + macOS"
os: osx
osx_image: xcode10.2 # py3.7 on macOS 10.14, but we will use py2
language: shell
env: TOXENV=py2
- name: "py3 + macOS"
os: osx
osx_image: xcode10.2 # py3.7 on macOS 10.14
language: shell
env: TOXENV=py3
allow_failures:
- python: "pypy"
cache: pip
install:
- pip install -e '.[development]'
script:
- tox