~ancarda/psr7-string-stream

685005f16b7edb2fa64af9d59f2ee00a00f54973 — Mark Dain 2 months ago 9900c9d master
Sync with Packagist
2 files changed, 9 insertions(+), 0 deletions(-)

M .builds/php7_3.yml
A .builds/poke-packagist
M .builds/php7_3.yml => .builds/php7_3.yml +4 -0
@@ 1,6 1,9 @@
---
image: debian/buster

secrets:
 - cde47d09-64da-4651-a62e-bf762c4dec73

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



@@ 28,3 31,4 @@ tasks:
  - test:        cd $DIR && composer run-script test
  - check-cov:   cd $DIR && composer run-script check-coverage
  - check-tests: cd $DIR && composer run-script check-tests
  - packagist:   cd $DIR && .builds/poke-packagist ancarda $DIR ~/.packagist-api-token

A .builds/poke-packagist => .builds/poke-packagist +5 -0
@@ 0,0 1,5 @@
#!/bin/sh
curl -X POST \
	-H 'content-type:application/json' \
	"https://packagist.org/api/update-package?username=${1}&apiToken=$(cat $3)" \
	--data "{\"repository\":{\"url\":\"https://packagist.org/packages/${1}/${2}\"}}"