Skip to content

Commit e487bc2

Browse files
committed
Fix travis config instead
1 parent 410db1e commit e487bc2

File tree

5 files changed

+69
-289
lines changed

5 files changed

+69
-289
lines changed

.github/workflows/main.yml

-235
This file was deleted.

.travis.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
language: python
2+
dist: xenial
3+
python: '3.7.4'
4+
cache: false
5+
6+
env:
7+
global:
8+
- PYTEST_ADDOPTS="-vv --showlocals --durations=100 --exitfirst"
9+
- PYTEST_COVERAGE=1
10+
11+
# setuptools-scm needs all tags in order to obtain a proper version
12+
git:
13+
depth: false
14+
15+
install:
16+
- python -m pip install --upgrade --pre tox
17+
18+
jobs:
19+
include:
20+
# Coverage for:
21+
# - TestArgComplete (linux only)
22+
# - numpy
23+
# - verbose=0
24+
# - test_sys_breakpoint_interception (via pexpect).
25+
- stage: baseline
26+
env: TOXENV=py38-xdist
27+
python: '3.8'
28+
29+
- env: TOXENV=py27-xdist
30+
python: '2.7'
31+
32+
- stage: tests
33+
env: TOXENV=py37-numpy-pexpect-twisted
34+
python: '3.7.4'
35+
36+
- env: TOXENV=py36-xdist PYTEST_REORDER_TESTS=0
37+
python: '3.6.9'
38+
39+
- env: TOXENV=py35-xdist
40+
python: '3.5.9'
41+
42+
- env: TOXENV=linting,docs,doctesting
43+
cache:
44+
directories:
45+
- $HOME/.cache/pre-commit
46+
47+
before_script:
48+
- |
49+
# Do not (re-)upload coverage with cron runs.
50+
if [[ "$TRAVIS_EVENT_TYPE" = cron ]]; then
51+
PYTEST_COVERAGE=0
52+
fi
53+
- |
54+
if [[ "$PYTEST_COVERAGE" = 1 ]]; then
55+
export COVERAGE_FILE="$PWD/.coverage"
56+
export COVERAGE_PROCESS_START="$PWD/.coveragerc"
57+
export _PYTEST_TOX_COVERAGE_RUN="coverage run -m"
58+
export _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
59+
fi
60+
script: env COLUMNS=120 python -m tox
61+
62+
after_success:
63+
- |
64+
if [[ "$PYTEST_COVERAGE" = 1 ]]; then
65+
env CODECOV_NAME="$TOXENV-$TRAVIS_OS_NAME" scripts/report-coverage.sh
66+
fi
67+
branches:
68+
only:
69+
- 4.6.x

scripts/append_codecov_token.py

-35
This file was deleted.

scripts/report-coverage.sh

-18
This file was deleted.

tox.ini

-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ changedir = testing/freeze
119119
# Disable PEP 517 with pip, which does not work with PyInstaller currently.
120120
deps =
121121
pyinstaller
122-
setuptools < 45.0.0
123122
commands =
124123
{envpython} create_executable.py
125124
{envpython} tox_run.py

0 commit comments

Comments
 (0)