-
Notifications
You must be signed in to change notification settings - Fork 4
/
.cirrus.yml
40 lines (38 loc) · 1.24 KB
/
.cirrus.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
# codecov-python has no Cirrus CI support
# https://github.com/codecov/codecov-python/issues/233
env:
LC_ALL: C.UTF-8
LANG: C.UTF-8
CODECOV_TOKEN: ENCRYPTED[4d4d54a100498340fb6314bfbf5346a228bcf3babbf36804f7806dd06a1c43832657dcfdc0efc314016809d3f8030c89]
Linux_task:
container:
matrix:
- image: python:2.7
- image: python:3.4
- image: python:3.5
- image: python:3.6
- image: python:3.7
- image: python:3.8
install_script:
- pip install -U tox coverage
- git clone --depth 1 https://github.com/EFForg/https-everywhere
- mv https-everywhere ..
script:
- python --version
- PY=$(python -c 'import sys; print("%d%d" % (sys.version_info[0], sys.version_info[1]))')
- if [[ $PY == 27 ]]; then export COV_FAIL_UNDER=60; fi
- if [[ $PY == 34 ]]; then export COV_FAIL_UNDER=65; fi
- python -m tox -e py$PY
- bash <(curl -s https://codecov.io/bash)
macOS_task:
osx_instance:
image: mojave-base
install_script:
- brew install python3
- pip3 install -U tox coverage
- git clone --depth 1 https://github.com/EFForg/https-everywhere
- mv https-everywhere ..
script:
- python3 --version
- python3 -m tox -e py
- bash <(curl -s https://codecov.io/bash)