~ancarda/psr7-string-stream

33e77d4623db1f4a4995fea3703edb53f2159505 — Mark Dain 3 months ago e512abf
Implement SourceHut CI
4 files changed, 92 insertions(+), 0 deletions(-)

A .builds/php7_3.yml
A .builds/php7_4.yml
A .builds/php8_0.yml
M README.md
A .builds/php7_3.yml => .builds/php7_3.yml +29 -0
@@ 0,0 1,29 @@
---
image: debian/buster

sources:
  - https://git.sr.ht/~ancarda/psr7-string-stream

packages:
  - php7.3-cli
  - composer

  # some dev tools use XML config files
  - php7.3-xml

  # for code coverage (phpunit and infection)
  - php-xdebug

  # for composer
  - unzip

environment:
  DIR: psr7-string-stream
  XDEBUG_MODE: coverage

tasks:
  - composer:    cd $DIR && composer install
  - analyze:     cd $DIR && composer run-script analyze
  - check-style: cd $DIR && composer run-script check-style
  - test:        cd $DIR && composer run-script test
  - check-tests: cd $DIR && composer run-script check-tests

A .builds/php7_4.yml => .builds/php7_4.yml +29 -0
@@ 0,0 1,29 @@
---
image: debian/bullseye

sources:
  - https://git.sr.ht/~ancarda/psr7-string-stream

packages:
  - php7.4-cli
  - composer

  # some dev tools use XML config files
  - php7.4-xml

  # for code coverage (phpunit and infection)
  - php-xdebug

  # for composer
  - unzip

environment:
  DIR: psr7-string-stream
  XDEBUG_MODE: coverage

tasks:
  - composer:    cd $DIR && composer install
  - analyze:     cd $DIR && composer run-script analyze
  - check-style: cd $DIR && composer run-script check-style
  - test:        cd $DIR && composer run-script test
  - check-tests: cd $DIR && composer run-script check-tests

A .builds/php8_0.yml => .builds/php8_0.yml +33 -0
@@ 0,0 1,33 @@
---
image: debian/sid

sources:
  - https://git.sr.ht/~ancarda/psr7-string-stream

packages:
  - php8.0-cli
  - composer

  # PHP 8.0 on debian/sid does not come with mbstring by default?
  # See: https://builds.sr.ht/~ancarda/job/453331
  - php8.0-mbstring

  # some dev tools use XML config files
  - php8.0-xml

  # for code coverage (phpunit and infection)
  - php-xdebug

  # for composer
  - unzip

environment:
  DIR: psr7-string-stream
  XDEBUG_MODE: coverage

tasks:
  - composer:    cd $DIR && composer install
  - analyze:     cd $DIR && composer run-script analyze
  - check-style: cd $DIR && composer run-script check-style
  - test:        cd $DIR && composer run-script test
  - check-tests: cd $DIR && composer run-script check-tests

M README.md => README.md +1 -0
@@ 5,6 5,7 @@ _Minimal string based PSR-7 StreamInterface implementation_
[![License](https://img.shields.io/badge/license-MIT-teal)](https://choosealicense.com/licenses/mit/)
[![Latest Stable Version](https://poser.pugx.org/ancarda/psr7-string-stream/v/stable)](https://packagist.org/packages/ancarda/psr7-string-stream)
[![Total Downloads](https://poser.pugx.org/ancarda/psr7-string-stream/downloads)](https://packagist.org/packages/ancarda/psr7-string-stream)
[![builds.sr.ht status](https://builds.sr.ht/~ancarda/psr7-string-stream.svg)](https://builds.sr.ht/~ancarda/psr7-string-stream?)

PSR-7 String Stream was born out of frustration working with PSR-7's
StreamInterface. Most implementations typically use PHP Streams, which aren't