Skip to content

Commit

Permalink
Merge pull request #593 from shyim/add-pcov
Browse files Browse the repository at this point in the history
feat: add pcov
  • Loading branch information
shyim authored Nov 26, 2024
2 parents 995893a + ba40d54 commit a34f5e9
Show file tree
Hide file tree
Showing 3 changed files with 156 additions and 0 deletions.
52 changes: 52 additions & 0 deletions php-8.1-pcov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package:
name: php-8.1-pcov
version: 1.0.11
epoch: 1
description: "CodeCoverage compatible driver for PHP"
copyright:
- license: PHP-3.01
dependencies:
runtime:
- ${{package.name}}-config
- php-8.1

environment:
contents:
packages:
- autoconf
- build-base
- busybox
- php-8.1
- php-8.1-dev

pipeline:
- uses: git-checkout
with:
repository: https://github.com/krakjoe/pcov.git
tag: v${{package.version}}
expected-commit: a497e8318801bdc515b468abd15a320c04387c66

- name: Prepare build
runs: phpize

- name: Configure
runs: ./configure --enable-pcov

- uses: autoconf/make

- name: Make install
runs: INSTALL_ROOT="${{targets.destdir}}" DESTDIR="${{targets.destdir}}" make install

subpackages:
- name: ${{package.name}}-config
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d"
echo "extension=pcov.so" > "${{targets.subpkgdir}}/etc/php/conf.d/pcov.ini"
update:
enabled: true
github:
identifier: krakjoe/pcov
use-tag: true
strip-prefix: v
52 changes: 52 additions & 0 deletions php-8.2-pcov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package:
name: php-8.2-pcov
version: 1.0.11
epoch: 1
description: "CodeCoverage compatible driver for PHP"
copyright:
- license: PHP-3.01
dependencies:
runtime:
- ${{package.name}}-config
- php-8.2

environment:
contents:
packages:
- autoconf
- build-base
- busybox
- php-8.2
- php-8.2-dev

pipeline:
- uses: git-checkout
with:
repository: https://github.com/krakjoe/pcov.git
tag: v${{package.version}}
expected-commit: a497e8318801bdc515b468abd15a320c04387c66

- name: Prepare build
runs: phpize

- name: Configure
runs: ./configure --enable-pcov

- uses: autoconf/make

- name: Make install
runs: INSTALL_ROOT="${{targets.destdir}}" DESTDIR="${{targets.destdir}}" make install

subpackages:
- name: ${{package.name}}-config
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d"
echo "extension=pcov.so" > "${{targets.subpkgdir}}/etc/php/conf.d/pcov.ini"
update:
enabled: true
github:
identifier: krakjoe/pcov
use-tag: true
strip-prefix: v
52 changes: 52 additions & 0 deletions php-8.3-pcov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package:
name: php-8.3-pcov
version: 1.0.11
epoch: 1
description: "CodeCoverage compatible driver for PHP"
copyright:
- license: PHP-3.01
dependencies:
runtime:
- ${{package.name}}-config
- php-8.3

environment:
contents:
packages:
- autoconf
- build-base
- busybox
- php-8.3
- php-8.3-dev

pipeline:
- uses: git-checkout
with:
repository: https://github.com/krakjoe/pcov.git
tag: v${{package.version}}
expected-commit: a497e8318801bdc515b468abd15a320c04387c66

- name: Prepare build
runs: phpize

- name: Configure
runs: ./configure --enable-pcov

- uses: autoconf/make

- name: Make install
runs: INSTALL_ROOT="${{targets.destdir}}" DESTDIR="${{targets.destdir}}" make install

subpackages:
- name: ${{package.name}}-config
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d"
echo "extension=pcov.so" > "${{targets.subpkgdir}}/etc/php/conf.d/pcov.ini"
update:
enabled: true
github:
identifier: krakjoe/pcov
use-tag: true
strip-prefix: v

0 comments on commit a34f5e9

Please sign in to comment.