diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4ad35473..00000000 --- a/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -language: php - -php: - - '7.1' - - '7.2' - - '7.3' - - '7.4' - -cache: - directories: - - $HOME/.composer/cache - -install: - - composer install - - wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar - - chmod +x coveralls.phar - - php coveralls.phar --version - -before_script: - - mkdir -p build/logs - -script: - - composer lint - - composer static-check - - composer test -- --coverage-clover=build/logs/clover.xml - -after_success: - - travis_retry php coveralls.phar -v - - bash <(curl -s https://codecov.io/bash) - -notifications: - webhooks: - urls: - - https://webhooks.gitter.im/e/ead3c37d57527214e9f2 - - https://webhooks.gitter.im/e/e57478303f87ecd7bffc - on_success: change - on_failure: always diff --git a/README.md b/README.md index 4cacead0..16721ca9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # Zipkin PHP -[![Build Status](https://travis-ci.org/openzipkin/zipkin-php.svg?branch=master)](https://travis-ci.org/openzipkin/zipkin-php) -[![Build status](https://ci.appveyor.com/api/projects/status/f02q896uv1m3crg1?svg=true)](https://ci.appveyor.com/project/jcchavezs/zipkin-php) ![CI](https://github.com/openzipkin/zipkin-php/workflows/CI/badge.svg) [![Latest Stable Version](https://poser.pugx.org/openzipkin/zipkin/v/stable)](https://packagist.org/packages/openzipkin/zipkin) [![Coverage Status](https://coveralls.io/repos/github/openzipkin/zipkin-php/badge.svg)](https://coveralls.io/github/openzipkin/zipkin-php) @@ -262,11 +260,11 @@ class TraceClient implements ClientInterface $span = $this->tracer->nextSpan(); $span->setKind(Zipkin\Kind\CLIENT); $span->tag(Tags\HTTP_PATH, $uri); - + try { $response = $this->client->request($method, $uri, $options); $span->tag(Tags\HTTP_STATUS_CODE, $response->getStatusCode()); - + return $response; catch (Throwable $e) { $span->setError($e); diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 7beadb13..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,33 +0,0 @@ -build: false -platform: - - x64 -clone_folder: c:\projects\zipkin-php - -environment: - matrix: - - php_ver_target: 7.1 - - php_ver_target: 7.2 - - php_ver_target: 7.3 - -init: - - SET COMPOSER_NO_INTERACTION=1 - -## Install PHP and composer, and run the appropriate composer command -install: - - ps: Invoke-WebRequest "https://raw.githubusercontent.com/ChadSikorra/ps-install-php/master/Install-PHP.ps1" -OutFile "Install-PHP.ps1" - - ps: .\Install-PHP.ps1 -Version $Env:php_ver_target -Highest -Arch x64 -Extensions mbstring,intl,openssl,curl - - rm .\Install-PHP.ps1 - - refreshenv - - mkdir C:\composer - - cd C:\composer - - php -r "readfile('http://getcomposer.org/installer');" | php - - powershell -command "(Get-Item C:\composer\composer.phar).length" - - powershell -command "'@php C:\composer\composer.phar ' + $([char]37) + '*' | Out-File C:\composer\composer.bat -Encoding ASCII" - - SET PATH=C:\composer;%PATH% - - cd c:\projects\zipkin-php - - composer install --no-progress --profile - -## Run the actual test -test_script: - - cd c:\projects\zipkin-php - - composer test -- --exclude-group ignore-windows