Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Commit

Permalink
ci(travis): Remove code coverage step
Browse files Browse the repository at this point in the history
CodeClimate in Docker containers now is responsible for this job
  • Loading branch information
k911 committed Apr 12, 2019
1 parent 12084e1 commit 0292a43
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ aliases:
- &upload-codeclimate-report
run:
name: Send Code Coverage report to CodeClimate
command: ./cc-test-reporter after-build -t clover --exit-code 0
command: ./cc-test-reporter after-build -t clover --exit-code 0 --prefix /usr/src/app

- &upload-codecov-report
codecov/upload:
Expand Down
27 changes: 6 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,17 @@ env:
global:
- COMPOSER_ARGS=install
- SWOOLE_VERSION=4.3.1
- CC_TEST_REPORTER_ID=77af0c58a2646fe49fb7df502c38a56560e074fbc8b3086f2d33032b44c885a8

matrix:
include:
- php: 7.2
- php: 7.2
- php: "7.2"
- php: "7.2"
env:
- "COMPOSER_ARGS='update --prefer-lowest'"
- php: 7.3
# - php: 7.3
# 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
# after_success:
# - composer merge-code-coverage
# - ./cc-test-reporter after-build -t clover --exit-code $TRAVIS_TEST_RESULT
# - bash <(curl -s https://codecov.io/bash)
- php: "7.3"
env:
- COVERAGE=1
- DEPLOY=1
- php: 7.3
- php: "7.3"
env:
- SWOOLE_LATEST=1
- COMPOSER_ARGS=update
Expand Down Expand Up @@ -61,10 +48,8 @@ install:

script:
- composer analyse
- if [[ "$COVERAGE" != "1" ]]; then composer unit-tests; fi
- if [[ "$COVERAGE" != "1" ]]; then composer feature-tests; fi
# - if [[ "$COVERAGE" == "1" ]]; then composer unit-code-coverage; fi
# - if [[ "$COVERAGE" == "1" ]]; then bash ./tests/run-feature-tests-code-coverage.sh; fi
- composer unit-tests
- composer feature-tests

before_deploy:
- >-
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
![travis](https://api.travis-ci.org/k911/swoole-bundle.svg?branch=develop)
[![CircleCI](https://circleci.com/gh/k911/swoole-bundle.svg?style=svg)](https://circleci.com/gh/k911/swoole-bundle)
[![travis](https://api.travis-ci.org/k911/swoole-bundle.svg?branch=develop)](https://travis-ci.org/k911/swoole-bundle)
[![codecov](https://codecov.io/gh/k911/swoole-bundle/branch/develop/graph/badge.svg)](https://codecov.io/gh/k911/swoole-bundle)
[![Maintainability](https://api.codeclimate.com/v1/badges/1d73a214622bba769171/maintainability)](https://codeclimate.com/github/k911/swoole-bundle/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/1d73a214622bba769171/test_coverage)](https://codeclimate.com/github/k911/swoole-bundle/test_coverage)
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/)
Expand Down

0 comments on commit 0292a43

Please sign in to comment.