Skip to content
Open
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
61 changes: 61 additions & 0 deletions .github/workflows/tests-3.2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Tests phpBB 3.2

on:
workflow_call:

env:
EXTNAME: gn36/hookup
PHPBB_BRANCH: 3.2.x

jobs:
tests:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
# phpBB 3.2.x selbst unterstützt PHP 7.3 und neuer nicht (Notices im Core)
php: ['5.6', '7.1', '7.2']

steps:
- name: Checkout phpBB
uses: actions/checkout@v4
with:
repository: phpbb/phpbb
ref: ${{ env.PHPBB_BRANCH }}
path: phpBB3

- name: Checkout extension
uses: actions/checkout@v4
with:
path: phpBB3/phpBB/ext/${{ env.EXTNAME }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, intl, gd, iconv
tools: composer:v2
coverage: none

- name: Install phpBB dependencies
run: composer install --dev --no-interaction --no-progress
working-directory: ./phpBB3/phpBB

- name: Install extension dependencies
run: composer install --no-interaction --no-progress
working-directory: ./phpBB3/phpBB/ext/${{ env.EXTNAME }}

- name: Start web server for functional tests
run: nohup php -S 127.0.0.1:8000 -t . > /tmp/php-server.log 2>&1 &
working-directory: ./phpBB3

- name: Run unit and functional tests
env:
PHPBB_TEST_DBMS: sqlite3
PHPBB_TEST_DBHOST: /tmp/phpbb_test.sqlite
PHPBB_FUNCTIONAL_URL: http://127.0.0.1:8000/phpBB/
run: |
phpBB/vendor/bin/phpunit --configuration "phpBB/ext/$EXTNAME/phpunit.xml.dist" --testsuite "Extension Test Suite"
phpBB/vendor/bin/phpunit --configuration "phpBB/ext/$EXTNAME/phpunit.xml.dist" --testsuite "Extension Functional Tests"
working-directory: ./phpBB3
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Tests

on:
push:
branches:
- master
pull_request:

jobs:
# phpBB 3.3.x: gemeinsamer Workflow der phpBB-Extension-Entwickler (Sniffer, EPV, Unit- und Funktionstests auf allen DBs)
# Der Branch 3.3.x des Frameworks zielt auf phpBB 3.3.x (master zielt auf phpBB 4)
phpbb-3-3:
name: phpBB 3.3
uses: phpbb-extensions/test-framework/.github/workflows/tests.yml@3.3.x
with:
EXTNAME: gn36/hookup
PHPBB_BRANCH: 3.3.x
# Die Funktionstests benötigen die Composer-Abhängigkeiten (vendor/) der Erweiterung
RUN_COMPOSER_INSTALL: '1'

# phpBB 3.2.x: das Framework unterstützt nur 3.3.x, daher ein eigener, kleiner Workflow
phpbb-3-2:
name: phpBB 3.2
uses: ./.github/workflows/tests-3.2.yml
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
components/*
vendor/*
vendor/*
composer.lock
62 changes: 0 additions & 62 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# phpBB 3.1 Extension - Hookup
# phpBB 3.3 Extension - Hookup
This Extension adds the possibility of scheduling meetings with multiple people to your topics. Use this for finding the right date for a meeting very easy or for getting feedback on availability of users on certain dates.

This Extension is intended to be fully backwards compatible to the existing phpBB 3.0.x Mod "Hookup" from the phpBB.de Team for Upgrades, but may include additional features.
Expand Down Expand Up @@ -27,6 +27,8 @@ Clone into ext/gn36/hookup:

git clone https://github.com/gn36/phpbb-ext-hookup ext/gn36/hookup

Requires phpBB 3.3.x and PHP 7.2 or newer (including PHP 8).

Go to "ACP" > "Customise" > "Extensions" and enable the "Hookup" extension.

## Development
Expand All @@ -39,9 +41,7 @@ If you wish to contribute a translation, feel free to send a pull request. Your

## Automated Testing

We use automated unit tests including functional tests to prevent regressions. Check out our travis build below:

master: [![Build Status](https://travis-ci.org/gn36/phpbb-ext-hookup.png?branch=master)](http://travis-ci.org/gn36/phpbb-ext-hookup)
Tests run via GitHub Actions using the [phpbb-extensions test framework](https://github.com/phpbb-extensions/test-framework) (see `.github/workflows/tests.yml`).

## License

Expand Down
135 changes: 0 additions & 135 deletions build.xml

This file was deleted.

13 changes: 8 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage" : "https://github.com/gn36/phpbb-ext-hookup/",
"version" : "1.0.3",
"time" : "2015-01-03",
"license" : "GPL-2.0",
"license" : "GPL-2.0-only",
"authors" : [{
"name" : "Martin Beckmann",
"email" : "gn#36@phpbb.de",
Expand All @@ -18,13 +18,16 @@
}
],
"require" : {
"php" : ">=5.3.3",
"php" : ">=5.4",
"eonasdan/bootstrap-datetimepicker" : ">=4.17",
"fortawesome/font-awesome" : "~4.4.0"
},
"require-dev" : {
"phpbb/epv" : "dev-master",
"phpbb/translation-validator" : "1.*"
"config" : {
"allow-plugins" : {
"composer/installers" : true,
"oomphinc/composer-installers-extender" : true,
"robloach/component-installer" : true
}
},
"extra" : {
"display-name" : "Hookup",
Expand Down
Loading
Loading