Skip to content

Commit ca6c489

Browse files
authored
Merge pull request #70 from blitze/github-actions
Migrate fully to github actions
2 parents 85588eb + 1294d25 commit ca6c489

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1108
-565
lines changed

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
docs/ export-ignore
44
tests/ export-ignore
5-
travis/ export-ignore
5+
.github/ export-ignore
6+
.babelrc export-ignore
67
.eslintrc export-ignore
78
.gitattributes export-ignore
89
.gitignore export-ignore
910
.prettierrc export-ignore
10-
.travis.yml export-ignore
1111
build.xml export-ignore
1212
crowdin.yaml export-ignore
1313
composer.lock export-ignore

.github/codecov.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fixes:
2+
- "phpBB3/phpBB/ext/blitze/sitemaker::"
3+
ignore:
4+
- "node_modules/"

.github/workflows/tests.yml

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ jobs:
8383
run: .github/ext-check-executable-files.sh ./ $EXTNAME
8484
working-directory: ./phpBB3
8585

86+
- name: Prep for EPV # the below directories may have a composer.json file which causes EPV to fail
87+
working-directory: phpBB3/phpBB/ext/${{ env.EXTNAME }}
88+
run: |
89+
rm -rf docs tests
90+
8691
- name: Run EPV
8792
if: ${{ env.EPV != 0 }}
8893
run: phpBB/vendor/bin/EPV.php run --dir="phpBB/ext/$EXTNAME/"
@@ -125,8 +130,8 @@ jobs:
125130
db: "mysql:8.0"
126131
- php: "8.0"
127132
db: "mysql:5.7"
128-
- php: "8.1"
129-
db: "mysql:5.7"
133+
# - php: "8.1"
134+
# db: "mysql:5.7"
130135

131136
name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }}
132137

@@ -195,7 +200,6 @@ jobs:
195200
working-directory: phpBB3/phpBB
196201
run: |
197202
echo "::set-output name=dir::$(composer config cache-files-dir)"
198-
composer self-update --1
199203
200204
- name: Cache composer dependencies
201205
uses: actions/cache@v2
@@ -355,7 +359,6 @@ jobs:
355359
working-directory: phpBB3/phpBB
356360
run: |
357361
echo "::set-output name=dir::$(composer config cache-files-dir)"
358-
composer self-update --1
359362
360363
- name: Cache composer dependencies
361364
uses: actions/cache@v2
@@ -422,39 +425,39 @@ jobs:
422425
include:
423426
- php: "7.1"
424427
db: "sqlite3"
425-
- php: "7.2"
426-
db: "mcr.microsoft.com/mssql/server:2017-latest"
427-
db_alias: "MSSQL 2017"
428-
- php: "7.2"
429-
db: "mcr.microsoft.com/mssql/server:2019-latest"
430-
db_alias: "MSSQL 2019"
428+
# - php: "7.2"
429+
# db: "mcr.microsoft.com/mssql/server:2017-latest"
430+
# db_alias: "MSSQL 2017"
431+
# - php: "7.2"
432+
# db: "mcr.microsoft.com/mssql/server:2019-latest"
433+
# db_alias: "MSSQL 2019"
431434

432435
name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }}
433436

434-
services:
435-
mssql:
436-
image: ${{ matrix.db != 'mcr.microsoft.com/mssql/server:2017-latest' && matrix.db != 'mcr.microsoft.com/mssql/server:2019-latest' && 'mcr.microsoft.com/mssql/server:2017-latest' || matrix.db }}
437-
env:
438-
SA_PASSWORD: "Pssw0rd_12"
439-
ACCEPT_EULA: "y"
440-
ports:
441-
- 1433:1433
442-
options: >-
443-
--health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Pssw0rd_12' -Q \"Use [master]; CREATE DATABASE [phpbb_tests] COLLATE Latin1_General_CI_AS\" || exit 1"
444-
--health-interval 10s
445-
--health-timeout 5s
446-
--health-retries 5
447-
--health-start-period 10s
448-
449-
redis:
450-
image: redis
451-
options: >-
452-
--health-cmd "redis-cli ping"
453-
--health-interval 10s
454-
--health-timeout 5s
455-
--health-retries 5
456-
ports:
457-
- 6379:6379
437+
# services:
438+
# mssql:
439+
# image: ${{ matrix.db != 'mcr.microsoft.com/mssql/server:2017-latest' && matrix.db != 'mcr.microsoft.com/mssql/server:2019-latest' && 'mcr.microsoft.com/mssql/server:2017-latest' || matrix.db }}
440+
# env:
441+
# SA_PASSWORD: "Pssw0rd_12"
442+
# ACCEPT_EULA: "y"
443+
# ports:
444+
# - 1433:1433
445+
# options: >-
446+
# --health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Pssw0rd_12' -Q \"Use [master]; CREATE DATABASE [phpbb_tests] COLLATE Latin1_General_CI_AS\" || exit 1"
447+
# --health-interval 10s
448+
# --health-timeout 5s
449+
# --health-retries 5
450+
# --health-start-period 10s
451+
452+
# redis:
453+
# image: redis
454+
# options: >-
455+
# --health-cmd "redis-cli ping"
456+
# --health-interval 10s
457+
# --health-timeout 5s
458+
# --health-retries 5
459+
# ports:
460+
# - 6379:6379
458461

459462
steps:
460463
- name: Checkout phpBB
@@ -493,7 +496,6 @@ jobs:
493496
working-directory: phpBB3/phpBB
494497
run: |
495498
echo "::set-output name=dir::$(composer config cache-files-dir)"
496-
composer self-update --1
497499
498500
- name: Cache composer dependencies
499501
uses: actions/cache@v2

.travis.yml

Lines changed: 0 additions & 86 deletions
This file was deleted.

README.md

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,55 @@
11
# phpBB SiteMaker Extension
22

3-
phpBB SiteMaker is an Extension for [phpBB 3.2](https://www.phpbb.com/)
3+
phpBB SiteMaker is an Extension for [phpBB](https://www.phpbb.com/)
44

55
## Description
66

77
phpBB SiteMaker allows you to transform your phpBB3 board into a full-blown site.
88

9-
[![Travis branch](https://img.shields.io/travis/blitze/phpBB-ext-sitemaker/develop.svg?style=flat)](https://travis-ci.org/blitze/phpBB-ext-sitemaker)
9+
[![Build Status](https://github.com/blitze/phpBB-ext-sitemaker/workflows/Tests/badge.svg)](https://github.com/blitze/phpBB-ext-sitemaker/actions)
1010
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/blitze/phpBB-ext-sitemaker/develop.svg?style=flat)](https://scrutinizer-ci.com/g/blitze/phpBB-ext-sitemaker/?branch=develop)
11-
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/blitze/phpBB-ext-sitemaker/develop.svg?style=flat)](https://scrutinizer-ci.com/g/blitze/phpBB-ext-sitemaker/?branch=develop)
11+
[![Code Coverage](https://img.shields.io/codecov/c/github/blitze/phpBB-ext-sitemaker/develop?style=flat-square&token=SWzwp4FuiH)](https://codecov.io/gh/blitze/phpBB-ext-sitemaker)
1212
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/phpbb-ext-sitemaker/localized.svg)](https://crowdin.com/project/phpbb-ext-sitemaker)
1313
[![Maintainability](https://api.codeclimate.com/v1/badges/a9a8d4b2441ad10c9aad/maintainability)](https://codeclimate.com/github/blitze/phpBB-ext-sitemaker_content/maintainability)
1414
[![Latest Stable Version](https://poser.pugx.org/blitze/sitemaker/v/stable?format=flat)](https://www.phpbb.com/customise/db/extension/phpbb_sitemaker_2/)
1515
[![License](https://poser.pugx.org/blitze/sitemaker/license?format=flat)](https://packagist.org/packages/blitze/sitemaker)
1616

1717
## Features
1818

19-
* Customize your site using blocks of content
20-
* Drag and drop interface for adding/removing blocks
21-
* Customizable block display - background color, title, etc
22-
* Set any front-facing controller as your site's landing page
23-
* Create layouts for each page or set a default layout for your entire site
24-
* Icon picker for choosing blocks/menu icons using font awesome
25-
* Limit access to specific blocks based on group memberships
26-
* Create Menus with nested lists
27-
* Create blocks with your own content using html/bbcode
19+
- Customize your site using blocks of content
20+
- Drag and drop interface for adding/removing blocks
21+
- Customizable block display - background color, title, etc
22+
- Set any front-facing controller as your site's landing page
23+
- Create layouts for each page or set a default layout for your entire site
24+
- Icon picker for choosing blocks/menu icons using font awesome
25+
- Limit access to specific blocks based on group memberships
26+
- Create Menus with nested lists
27+
- Create blocks with your own content using html/bbcode
2828

2929
## Documentation
3030

31-
* [Changelog](CHANGELOG.md)
32-
* [User guide](https://blitze.github.io/phpBB-ext-sitemaker/docs/en/introduction)
33-
* [Developing Guide](https://blitze.github.io/phpBB-ext-sitemaker/docs/en/developer-extensions)
34-
* [Contributing](https://blitze.github.io/phpBB-ext-sitemaker/docs/en/contrib-overview)
31+
- [Changelog](CHANGELOG.md)
32+
- [User guide](https://blitze.github.io/phpBB-ext-sitemaker/docs/en/introduction)
33+
- [Developing Guide](https://blitze.github.io/phpBB-ext-sitemaker/docs/en/developer-extensions)
34+
- [Contributing](https://blitze.github.io/phpBB-ext-sitemaker/docs/en/contrib-overview)
3535

3636
## Download & Installation
3737

38-
* Download the extension from [here](https://www.phpbb.com/customise/db/extension/phpbb_sitemaker_2/)
39-
* Extract and upload it to your phpBB/ext/ folder so you have phpBB/ext/blitze/sitemaker
40-
* Go to "ACP" > "Customise" > "Extensions" and enable the "phpBB Sitemaker" extension.
38+
- Download the extension from [here](https://www.phpbb.com/customise/db/extension/phpbb_sitemaker_2/)
39+
- Extract and upload it to your phpBB/ext/ folder so you have phpBB/ext/blitze/sitemaker
40+
- Go to "ACP" > "Customise" > "Extensions" and enable the "phpBB Sitemaker" extension.
4141

4242
## Upgrade from phpBB Primetime
4343

44-
* Disable (do not Purge) phpBB Primetime
45-
* Install phpBB Sitemaker as described above
46-
* Purge phpBB Primetime
44+
- Disable (do not Purge) phpBB Primetime
45+
- Install phpBB Sitemaker as described above
46+
- Purge phpBB Primetime
4747

4848
## Collaborate
4949

50-
* Create a issue in the [tracker](https://github.com/blitze/phpBB-ext-sitemaker/issues)
51-
* Note the restrictions for [branch names](https://wiki.phpbb.com/Git#Branch_Names) and [commit messages](https://wiki.phpbb.com/Git#Commit_Messages) are similar to phpBB3
52-
* Submit a [pull-request](https://github.com/blitze/phpBB-ext-sitemaker/pulls)
53-
54-
## Testing
55-
56-
We use Travis-CI as a continuous integration server and phpunit for our unit testing. See more information on the [phpBB development wiki](https://wiki.phpbb.com/Unit_Tests).
50+
- Create a issue in the [tracker](https://github.com/blitze/phpBB-ext-sitemaker/issues)
51+
- Note the restrictions for [branch names](https://wiki.phpbb.com/Git#Branch_Names) and [commit messages](https://wiki.phpbb.com/Git#Commit_Messages) are similar to phpBB3
52+
- Submit a [pull-request](https://github.com/blitze/phpBB-ext-sitemaker/pulls)
5753

5854
## License
5955

blocks/feeds.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public function display(array $bdata, $edit_mode = false)
8383
try
8484
{
8585
$content = $this->render_feeds($feed_urls, $settings, $status);
86-
$status = 1;
8786
}
8887
catch (\Exception $e)
8988
{

blocks/members.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,9 @@ public function display(array $bdata, $edit_mode = false)
8787

8888
$data = $this->members->get_list($bdata['settings']);
8989

90-
$data['RANGE'] = $this->translator->lang($this->range_options[$bdata['settings']['date_range']]);
91-
92-
if (empty($data['MEMBERS']))
90+
if (!empty($data['MEMBERS']))
9391
{
94-
$data = [];
92+
$data['RANGE'] = $this->translator->lang($this->range_options[$bdata['settings']['date_range']]);
9593
}
9694

9795
return array(

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"simplepie/simplepie": "^1.5"
2828
},
2929
"require-dev": {
30-
"phing/phing": "2.4.*"
30+
"phing/phing": "^2.16"
3131
},
3232
"extra": {
3333
"display-name": "phpBB SiteMaker",
@@ -39,5 +39,8 @@
3939
"directory": "/customise/db/extension/phpbb_sitemaker_2",
4040
"filename": "version_check"
4141
}
42+
},
43+
"config": {
44+
"prepend-autoloader": false
4245
}
4346
}

0 commit comments

Comments
 (0)