forked from jazzband/pathlib2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
67 lines (67 loc) · 1.63 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
language: python
sudo: false
matrix:
include:
- python: "3.7"
dist: xenial
env: LC_ALL="en_US.utf-8"
- python: "3.7"
dist: xenial
env: LC_ALL="en_US.ascii"
- python: "3.6"
dist: xenial
- python: "3.5"
dist: xenial
- python: "3.4"
dist: xenial
- python: "2.7"
dist: xenial
- python: "2.6"
dist: trusty
- python: "pypy"
dist: xenial
- python: "pypy3"
dist: xenial
- arch: arm64
python: "3.7"
dist: xenial
env: LC_ALL="en_US.utf-8"
- arch: arm64
python: "3.7"
dist: xenial
env: LC_ALL="en_US.ascii"
- arch: arm64
python: "3.6"
dist: xenial
- arch: arm64
python: "3.5"
dist: xenial
- arch: arm64
python: "3.4"
dist: xenial
- arch: arm64
python: "2.7"
dist: xenial
allow_failures:
# pypy occasionally has some bugs
- python: "pypy"
- python: "pypy3"
branches:
only:
- develop
install:
- "python -c \"import sys; print(sys.getfilesystemencoding())\""
- "pip install --upgrade setuptools"
- "pip install --upgrade pytest"
- "pip install pytest-cov"
- "pip install -r requirements.txt"
- "if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then pip install check-manifest flake8; fi"
- "pip install ."
script:
- "if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then check-manifest; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then flake8; fi"
- cd tests
- "pytest --cov-report=xml --cov=pathlib2 ."
after_success:
- bash <(curl -s https://codecov.io/bash)