Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 0 additions & 159 deletions .appveyor.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.git
.idea
.libs
autom4te.cache
config.cache
config.h
config.log
config.nice
config.status
configure
libtool
Makefile
Makefile.fragments
Makefile.objects
modules
run-tests.php
tests/*.diff
tests/*.exp
tests/*.log
tests/*.out
tests/*.php
tmp-php.ini
benchmark/results
*.lo
*.o
*.so
*.dep
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/.idea export-ignore
/.github export-ignore
/.gitignore export-ignore
/.gitattributes export-ignore
/.travis.yml export-ignore
/.appveyor.yml export-ignore
/benchmark/results export-ignore
/.dockerignore export-ignore
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on:
push:
pull_request:

permissions:
contents: read

jobs:
linux-nts:
name: PHP ${{ matrix.php }} NTS
runs-on: ubuntu-latest
container: php:${{ matrix.php }}-cli
strategy:
fail-fast: false
matrix:
php: ["8.3", "8.4", "8.5"]

steps:
- name: Install build tools
run: |
apt-get update
apt-get install -y --no-install-recommends autoconf g++ gcc git libc-dev make pkg-config re2c

- uses: actions/checkout@v4

- name: Check whitespace
run: |
if find . -path './.git' -prune -o -type f -print0 | xargs -0 -r grep -IEn '[[:blank:]]+$'; then
echo 'Trailing whitespace found' >&2
exit 1
fi

- name: Validate package metadata
run: |
php -r "\$json = json_decode(file_get_contents('composer.json'), true, flags: JSON_THROW_ON_ERROR); assert(\$json['type'] === 'php-ext');"

- name: Configure and build with strict warnings
run: |
phpize
CFLAGS="-O2 -Wall -Wextra -Werror" ./configure --enable-pcov
make -j"$(nproc)"

- name: Run PHPT suite
run: NO_INTERACTION=1 REPORT_EXIT_STATUS=1 make test

- name: Check PHP and shell syntax
run: |
find tools benchmark -type f -name '*.php' -print0 | xargs -0 -n1 php -l
find benchmark -type f -name '*.sh' -print0 | xargs -0 -r -n1 bash -n
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
push:
tags:
- "v*"

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify tag matches extension version
run: |
version="$(sed -n 's/^#define PHP_PCOV_VERSION "\([^"]*\)"/\1/p' php_pcov.h)"
test "v${version}" = "${GITHUB_REF_NAME}"
- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create "${GITHUB_REF_NAME}" --generate-notes --verify-tag
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Object files
*.o
*.lo
*.dep

# Libraries
*.lib
Expand Down Expand Up @@ -53,3 +54,5 @@ run-tests.log
tmp-php.ini

/vendor/
.idea
benchmark/results/
62 changes: 0 additions & 62 deletions .travis.yml

This file was deleted.

39 changes: 0 additions & 39 deletions INSTALL.md

This file was deleted.

Loading
Loading