~ancarda/gemtext-parser

ef544f6ca2e087d4e51be0e8e202a0dfe55d0a77 — Mark Dain 1 year, 5 months ago f8ae4b8
Publish on SourceHut and Packagist
3 files changed, 39 insertions(+), 0 deletions(-)

A .builds/php8_1.yml
A .builds/poke-packagist
M README.md
A .builds/php8_1.yml => .builds/php8_1.yml +29 -0
@@ 0,0 1,29 @@
---
image: debian/bookworm

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

sources:
  - https://git.sr.ht/~ancarda/gemtext-parser

packages:
 - php8.1-cli
 - php8.1-xml
 - composer
 - php-xdebug
 - unzip

environment:
  DIR: gemtext-parser
  XDEBUG_MODE: coverage

tasks:
  - info:        php --version
  - 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-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}\"}}"

M README.md => README.md +5 -0
@@ 2,6 2,11 @@

_Gemtext (text/gemini) parser and HTML encoder_

[![License](https://img.shields.io/badge/license-MIT-teal)](https://choosealicense.com/licenses/mit/)
[![Latest Stable Version](https://poser.pugx.org/ancarda/gemtext-parser/v/stable)](https://packagist.org/packages/ancarda/gemtext-parser)
[![Total Downloads](https://poser.pugx.org/ancarda/gemtext-parser/downloads)](https://packagist.org/packages/ancarda/gemtext-parser)
[![builds.sr.ht status](https://builds.sr.ht/~ancarda/gemtext-parser.svg)](https://builds.sr.ht/~ancarda/gemtext-parser?)

This package implements a PHP parser for Gemtext (`text/gemini`) as specified
here: https://gemini.circumlunar.space/docs/gemtext.gmi