~ancarda/high-test-coverage

5635ab3d22a4bf422a3e748aa2c1e3f39e1936f3 — Mark Dain 2 months ago 532d1c0
Correct CI pipeline

Additionally add a command to poke Packagist
4 files changed, 15 insertions(+), 6 deletions(-)

M .builds/php7_3.yml
M .builds/php7_4.yml
M .builds/php8_0.yml
A .builds/poke-packagist
M .builds/php7_3.yml => .builds/php7_3.yml +6 -2
@@ 1,8 1,11 @@
---
image: debian/buster

secrets:
 - 1e8d3317-4624-41c5-951e-62b536902cfa

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

packages:
  - php7.3-cli


@@ 18,7 21,7 @@ packages:
  - unzip

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

tasks:


@@ 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 high-test-coverage ~/.packagist

M .builds/php7_4.yml => .builds/php7_4.yml +2 -2
@@ 2,7 2,7 @@
image: debian/bullseye

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

packages:
  - php7.4-cli


@@ 18,7 18,7 @@ packages:
  - unzip

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

tasks:

M .builds/php8_0.yml => .builds/php8_0.yml +2 -2
@@ 2,7 2,7 @@
image: debian/sid

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

packages:
  - php8.0-cli


@@ 22,7 22,7 @@ packages:
  - unzip

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

tasks:

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