diff --git a/.travis.yml b/.travis.yml index b77c3f59501..63616f3bc2b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ cache: false env: global: - - PYTEST_ADDOPTS=-vv + - PYTEST_ADDOPTS="-vv testing/acceptance_test.py -k test_doctest_id" # setuptools-scm needs all tags in order to obtain a proper version git: @@ -22,54 +22,12 @@ install: jobs: include: - # OSX tests - first (in test stage), since they are the slower ones. - - os: osx - osx_image: xcode10.1 - language: generic - env: TOXENV=py37-xdist PYTEST_COVERAGE=1 - before_install: - - which python3 - - python3 -V - - ln -sfn "$(which python3)" /usr/local/bin/python - - python -V - - test $(python -c 'import sys; print("%d%d" % sys.version_info[0:2])') = 37 - # Full run of latest supported version, without xdist. # Coverage for: # - test_sys_breakpoint_interception (via pexpect). - - env: TOXENV=py37-pexpect PYTEST_COVERAGE=1 + - env: TOXENV=py37-pexpect PYTEST_COVERAGE=1 COLUMNS=192 python: '3.7' - # Coverage tracking is slow with pypy, skip it. - - env: TOXENV=pypy3-xdist - python: 'pypy3' - - - env: TOXENV=py35-xdist - python: '3.5' - - # Coverage for: - # - pytester's LsofFdLeakChecker - # - TestArgComplete (linux only) - # - numpy - # - old attrs - # Empty PYTEST_ADDOPTS to run this non-verbose. - - env: TOXENV=py37-lsof-oldattrs-numpy-twisted-xdist PYTEST_COVERAGE=1 PYTEST_ADDOPTS= - - # Specialized factors for py37. - - env: TOXENV=py37-pluggymaster-xdist - - env: TOXENV=py37-freeze - - - env: TOXENV=py38-xdist - python: '3.8-dev' - - - stage: baseline - env: TOXENV=py36-xdist - python: '3.6' - - env: TOXENV=linting,docs,doctesting PYTEST_COVERAGE=1 - cache: - directories: - - $HOME/.cache/pre-commit - - stage: deploy python: '3.6' install: pip install -U setuptools setuptools_scm tox diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index f18ce08877a..00000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,77 +0,0 @@ -trigger: -- master -- features - -variables: - PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml -vv" - PYTEST_COVERAGE: '0' - -jobs: - -- job: 'Test' - pool: - vmImage: "vs2017-win2016" - strategy: - matrix: - # -- pypy3 disabled for now: #5279 -- - # pypy3: - # python.version: 'pypy3' - # tox.env: 'pypy3' - py35-xdist: - python.version: '3.5' - tox.env: 'py35-xdist' - # Coverage for: - # - test_supports_breakpoint_module_global - PYTEST_COVERAGE: '1' - py36-xdist: - python.version: '3.6' - tox.env: 'py36-xdist' - py37: - python.version: '3.7' - tox.env: 'py37-twisted-numpy' - # Coverage for: - # - _py36_windowsconsoleio_workaround (with py36+) - # - test_request_garbage (no xdist) - PYTEST_COVERAGE: '1' - py37-linting/docs/doctesting: - python.version: '3.7' - tox.env: 'linting,docs,doctesting' - py37-pluggymaster-xdist: - python.version: '3.7' - tox.env: 'py37-pluggymaster-xdist' - maxParallel: 10 - - steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: '$(python.version)' - architecture: 'x64' - - - script: python -m pip install --upgrade pip && python -m pip install tox - displayName: 'Install tox' - - - bash: | - if [[ "$PYTEST_COVERAGE" == "1" ]]; then - export _PYTEST_TOX_COVERAGE_RUN="coverage run -m" - export _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess - export COVERAGE_FILE="$PWD/.coverage" - export COVERAGE_PROCESS_START="$PWD/.coveragerc" - fi - python -m tox -e $(tox.env) - displayName: 'Run tests' - - - task: PublishTestResults@2 - inputs: - testResultsFiles: 'build/test-results/$(tox.env).xml' - testRunTitle: '$(tox.env)' - condition: succeededOrFailed() - - - bash: | - if [[ "$PYTEST_COVERAGE" == 1 ]]; then - scripts/report-coverage.sh - fi - env: - CODECOV_NAME: $(tox.env) - CODECOV_TOKEN: $(CODECOV_TOKEN) - displayName: Report and upload coverage - condition: eq(variables['PYTEST_COVERAGE'], '1')