From 1e7acb9a8c1064f5b5cce01eb588eaf2dde41159 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 24 Nov 2018 20:33:16 +0100 Subject: [PATCH 1/3] CI: Codeclimate integration [skip appveyor] --- .travis.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1c055e66356..5626e3e5429 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,8 @@ env: - TOXENV=py37-pexpect,py37-trial,py37-numpy - TOXENV=py37-pluggymaster PYTEST_NO_COVERAGE=1 - TOXENV=py37-freeze PYTEST_NO_COVERAGE=1 + global: + CC_TEST_REPORTER_ID=17da631beaabf819740e82ef7edee551fe9a4e41409ffdd81284ad6544a51782 jobs: include: @@ -81,7 +83,11 @@ before_script: export COVERAGE_PROCESS_START="$PWD/.coveragerc" export _PYTEST_TOX_COVERAGE_RUN="coverage run -m" export _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess - fi + + # Codeclimate. + curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + chmod +x ./cc-test-reporter + ./cc-test-reporter before-build -d script: tox --recreate @@ -97,6 +103,9 @@ after_success: bash <(curl -s https://codecov.io/bash) -Z -X gcov -X coveragepy -X search -X xcode -X gcovout -X fix -f coverage.xml -F "${TOXENV//-/,},linux" fi +after_script: + - ./cc-test-reporter after-build -d --exit-code $TRAVIS_TEST_RESULT + notifications: irc: channels: From 69719004b7cb8e5e3b6b188f0b512675f5a07140 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 24 Nov 2018 20:36:49 +0100 Subject: [PATCH 2/3] TEMP: only py27/py37 --- .travis.yml | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5626e3e5429..1df9382cc6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,53 +12,13 @@ python: install: - pip install --upgrade --pre tox env: - matrix: - - TOXENV=py27 - # Specialized factors for py27. - - TOXENV=py27-nobyte - - TOXENV=py27-xdist - - TOXENV=py27-pluggymaster PYTEST_NO_COVERAGE=1 - # Specialized factors for py37. - - TOXENV=py37-pexpect,py37-trial,py37-numpy - - TOXENV=py37-pluggymaster PYTEST_NO_COVERAGE=1 - - TOXENV=py37-freeze PYTEST_NO_COVERAGE=1 global: CC_TEST_REPORTER_ID=17da631beaabf819740e82ef7edee551fe9a4e41409ffdd81284ad6544a51782 jobs: include: - # Coverage tracking is slow with pypy, skip it. - - env: TOXENV=pypy PYTEST_NO_COVERAGE=1 - python: 'pypy-5.4' - dist: trusty - - env: TOXENV=py34 - python: '3.4' - - env: TOXENV=py35 - python: '3.5' - - env: TOXENV=py36 - python: '3.6' - - env: TOXENV=py37 - - &test-macos - language: generic - os: osx - osx_image: xcode9.4 - sudo: required - install: - - python -m pip install --pre tox - env: TOXENV=py27 - - <<: *test-macos - env: TOXENV=py37 - before_install: - - brew update - - brew upgrade python - - brew unlink python - - brew link python - - - stage: baseline - env: TOXENV=py27-pexpect,py27-trial,py27-numpy + - env: TOXENV=py27-xdist - env: TOXENV=py37-xdist - - env: TOXENV=linting,docs,doctesting - python: '3.7' - stage: deploy python: '3.6' From 8c26e220760a7796e553556f822818d6698d7a8a Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 24 Nov 2018 20:54:19 +0100 Subject: [PATCH 3/3] fixup! TEMP: only py27/py37 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 1df9382cc6c..bda560d4fb8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,6 +48,7 @@ before_script: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter chmod +x ./cc-test-reporter ./cc-test-reporter before-build -d + fi script: tox --recreate