Skip to content

Commit 2889e12

Browse files
committed
Merge branch 'master' into master-michiel
# Conflicts: # .github/workflows/docker-test.yml # .github/workflows/main.yml # .github/workflows/s3upload-test.yml # Dockerfile.release # docker/docker-apache-phplist.conf
2 parents 7925c18 + 048e133 commit 2889e12

21 files changed

+494
-643
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<!--- Please provide a general description of your changes in the Pull Request -->
55

66
## Related Issue
7-
<!--- If it fixes an open issue on Mantis (https://mantis.phplist.org), please include a link to the issue here. -->
7+
8+
89

910
## Screenshots (if appropriate):

.github/workflows/build-release.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ jobs:
113113
../vendor/bin/behat -n -fprogress -p chrome --strict --stop-on-failure --tags=@initialise
114114
../vendor/bin/behat -n -fprogress -p chrome --strict --stop-on-failure --tags="~@initialise && ~@wip"
115115
116+
- name: Upload the screenshots
117+
if: always()
118+
uses: actions/upload-artifact@v2
119+
with:
120+
path: "output"
121+
name: "behat output"
122+
retention-days: 3
123+
116124
- name: Clean Up
117125
run: |
118126
cd $GITHUB_WORKSPACE
@@ -163,7 +171,6 @@ jobs:
163171
public_html/lists/base/.htaccess
164172
public_html/lists/base/phpunit.xml.dist
165173
public_html/lists/base/composer.lock
166-
public_html/lists/base/composer.json
167174
public_html/lists/base/CODE_OF_CONDUCT.md
168175
public_html/lists/admin/ui/default
169176
)

.github/workflows/main.yml

+32-21
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
run: |
3232
cd $GITHUB_WORKSPACE
3333
sudo apt update
34+
sudo apt install rsync
3435
3536
- name: Cache Composer dependencies
3637
uses: actions/cache@v2
@@ -57,13 +58,13 @@ jobs:
5758
sudo mysqladmin -proot create phplistdb
5859
sudo mysql -proot -e 'grant all on phplistdb.* to phplist@"%" identified by "phplist"'
5960
60-
# - name: Set bootlist theme
61-
# run: |
62-
# cd $GITHUB_WORKSPACE/public_html/lists/admin/ui/
63-
# wget https://github.com/phpList/phplist-ui-bootlist/archive/master.tar.gz
64-
# tar -xzf master.tar.gz
65-
# mv phplist-ui-bootlist-master phplist-ui-bootlist
66-
# rm master.tar.gz
61+
- name: Set bootlist theme
62+
run: |
63+
cd $GITHUB_WORKSPACE/public_html/lists/admin/ui/
64+
wget https://github.com/phpList/phplist-ui-bootlist/archive/master.tar.gz
65+
tar -xzf master.tar.gz
66+
mv phplist-ui-bootlist-master phplist-ui-bootlist
67+
rm master.tar.gz
6768
6869
- name: Start Test Server
6970
run: |
@@ -77,30 +78,40 @@ jobs:
7778
sudo php -S 0.0.0.0:80 -t public_html > /dev/null 2>&1 &
7879
7980
- name: Check PHP syntax errors
80-
uses: phplist/[email protected]
81+
uses: overtrue/[email protected]
8182
with:
8283
path: ./public_html
8384

84-
# - name: Report Versions
85-
# run: |
86-
# google-chrome --version
87-
# php -v
88-
# chromedriver -v
89-
# geckodriver -V
90-
# which geckodriver
91-
# which chromedriver
92-
# firefox -v
93-
# vendor/bin/behat -V
85+
- name: Report Versions
86+
run: |
87+
google-chrome --version
88+
php -v
89+
chromedriver -v
90+
geckodriver -V
91+
which geckodriver
92+
which chromedriver
93+
firefox -v
94+
vendor/bin/behat -V
9495
9596
- name: Run BDD Tests
9697
run: |
9798
cd $GITHUB_WORKSPACE/tests
98-
../vendor/bin/behat -n -fprogress -p chrome --strict --stop-on-failure --tags=@initialise
99-
../vendor/bin/behat -n -fprogress -p chrome --strict --stop-on-failure --tags="~@initialise && ~@wip"
99+
../vendor/bin/behat -p chrome --stop-on-failure --tags=@initialise
100+
../vendor/bin/behat -p chrome --tags="~@initialise && ~@wip"
101+
102+
- name: Upload the screenshots
103+
if: always()
104+
uses: actions/upload-artifact@v2
105+
with:
106+
path: "output"
107+
name: "behat output"
108+
retention-days: 3
100109

101110
- name: Display output
102111
run: |
103112
cd $GITHUB_WORKSPACE
104-
cat output/selenium.log
113+
# find . -type f
114+
# cat output/selenium.log
115+
if: ${{ failure() }}
105116

106117

Dockerfile.release

+11-12
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,29 @@ FROM debian:buster-slim
33

44
LABEL maintainer="[email protected]"
55

6-
RUN apt-get update && apt-get upgrade -y
6+
RUN apt-get update && apt-get upgrade -y
77

8-
RUN apt-get install -y apt-utils \
9-
vim apache2 net-tools php-mysql \
10-
libapache2-mod-php php-curl php-gd \
11-
git cron php-imap php-xml php-zip php-mbstring python-pip
8+
RUN apt-get install -y apt-utils \
9+
vim apache2 net-tools php-mysql \
10+
libapache2-mod-php php-curl php-gd \
11+
git cron php-imap php-xml php-zip php-mbstring
1212

1313
RUN useradd -d /var/www/phpList3 phplist
1414

1515
ARG VERSION=unknown
1616
RUN echo VERSION=${VERSION}
17-
ARG AWS_ACCESSKEY=x
18-
ARG AWS_SECRETKEY=y
19-
ARG S3_VERSIONS_BUCKET=unknown
2017

2118
RUN rm -rf /var/www/phpList3 && mkdir -p /var/www/phpList3
2219
RUN rm -rf /etc/phplist && mkdir /etc/phplist
2320

2421
COPY docker/docker-apache-phplist.conf /etc/apache2/sites-available
2522
COPY docker/docker-entrypoint.sh /usr/local/bin/
26-
COPY docker/phplist-crontab /etc/cron.d/
27-
COPY docker/docker-phplist-config-live.php /etc/phplist/
23+
RUN chmod 755 /usr/local/bin/docker-entrypoint.sh
24+
RUN a2ensite docker-apache-phplist
25+
RUN a2enmod rewrite
2826

29-
RUN pip install s3cmd
27+
COPY docker/phplist-crontab /etc/cron.d/
28+
COPY docker/docker-phplist-config-live.php /etc/phplist/config.php
3029

3130
COPY phplist-${VERSION}.tgz ./
3231

@@ -43,4 +42,4 @@ RUN chown -R www-data: /var/www/phpList3
4342
EXPOSE 80
4443

4544
VOLUME ["/var/www", "/var/log/apache2"]
46-
ENTRYPOINT ["docker-entrypoint.sh"]
45+
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#
77
![CI](https://github.com/phpList/phplist3/workflows/CI/badge.svg)
8-
[![Stable release](https://img.shields.io/badge/stable-3.6.2-blue.svg)](https://sourceforge.net/projects/phplist/files/phplist/)
8+
[![Stable release](https://img.shields.io/badge/stable-3.6.3-blue.svg)](https://sourceforge.net/projects/phplist/files/phplist/)
99
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
1010
<a href="http://translate.phplist.org/engage/phplist/?utm_source=widget">
1111
<img src="http://translate.phplist.org/widgets/phplist/-/svg-badge.svg" alt="Translation status" />
@@ -122,8 +122,7 @@ This process may take quite a while if your database is large. Don't interrupt i
122122
<div align="center" width="100%">
123123
<img src="https://www.phplist.com/site/images/readme-images/issues_icon.svg" align="center" width="96px" />
124124
<h3>Issues</h3>
125-
<p>Report issues to <a href="https://mantis.phplist.org/bug_report_page.php">Mantis issue tracker</a> (select project phpList 3 application)<br>
126-
'Please don't use GitHub issues'.</p>
125+
<p>Report issues to <a href="https://github.com/phpList/phplist3/issues">GitHub Issues</a> and, if applicable, add the respective label.</p>
127126
</div>
128127

129128
#

VERSION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# file that keeps track of the latest tag in cvs and the corresponding version
22
# this automates publishing a new version, when it's tagged
33
# if you don't understand this, don't worry. You don't need this file
4-
VERSION=3.6.2
5-
DEVVERSION=3.6.3-RC1
4+
VERSION=3.6.3
5+
DEVVERSION=3.6.4-RC1

Vagrantfile

+8-12
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@
88
## below
99

1010
Vagrant.configure("2") do |config|
11-
config.vagrant.plugins = [
12-
"vagrant-docker-compose",
13-
]
1411
config.vm.box = "ubuntu/bionic64"
15-
config.vm.provision :docker
16-
config.vm.provision :docker_compose,
17-
compose_version: "1.22.0"
12+
config.vm.network "public_network"
1813

1914
config.vm.provider "virtualbox" do |v|
2015
v.memory = 10640
@@ -31,9 +26,7 @@ Vagrant.configure("2") do |config|
3126
apt install software-properties-common
3227
add-apt-repository ppa:ondrej/php
3328
DEBIAN_FRONTEND=noninteractive apt update
34-
DEBIAN_FRONTEND=noninteractive apt install -y composer mariadb-client mariadb-server postfix chromium-chromedriver firefox openjdk-8-jre-headless fonts-liberation
35-
DEBIAN_FRONTEND=noninteractive apt install -y php7.0 php7.0-mbstring php7.0-curl php7.0-mysql php7.0-xml php7.0-zip
36-
DEBIAN_FRONTEND=noninteractive apt install -y php7.1 php7.1-mbstring php7.1-curl php7.1-mysql php7.1-xml php7.1-zip
29+
DEBIAN_FRONTEND=noninteractive apt install -y make mariadb-client mariadb-server postfix chromium-chromedriver firefox openjdk-8-jre-headless fonts-liberation xdg-utils
3730
DEBIAN_FRONTEND=noninteractive apt install -y php7.2 php7.2-mbstring php7.2-curl php7.2-mysql php7.2-xml php7.2-zip
3831
DEBIAN_FRONTEND=noninteractive apt install -y php7.3 php7.3-mbstring php7.3-curl php7.3-mysql php7.3-xml php7.3-zip
3932
DEBIAN_FRONTEND=noninteractive apt install -y php7.4 php7.4-mbstring php7.4-curl php7.4-mysql php7.4-xml php7.4-zip
@@ -49,17 +42,20 @@ Vagrant.configure("2") do |config|
4942
update-alternatives --set phpize /usr/bin/phpize$PHPVERSION
5043
update-alternatives --set php-config /usr/bin/php-config$PHPVERSION
5144
[[ ! -z $(which google-chrome) ]] || {
52-
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
45+
[[ ! -f google-chrome-stable_current_amd64.deb ]] && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
5346
dpkg -i google-chrome-stable_current_amd64.deb
5447
}
5548
google-chrome --version
5649
rm -rf vendor
57-
composer install
50+
bin/update-composer.sh
51+
sudo -u vagrant php composer.phar update
52+
ln -s /vagrant/vendor/bin/chromedriver /usr/local/bin/chromedriver
53+
ln -s /vagrant/vendor/bin/geckodriver /usr/local/bin/geckodriver
5854
service postfix stop
5955
service apache2 stop
6056
service mysqld start
6157
cp -fv tests/ci/config.php public_html/lists/config/config.php
62-
cp -fv tests/default.behat.yml tests/behat.yml
58+
cp -fv tests/ci/behat.yml tests/behat.yml
6359
[[ ! -d public_html/lists/admin/ui/phplist-ui-bootlist ]] && {
6460
cd public_html/lists/admin/ui/
6561
wget https://github.com/phpList/phplist-ui-bootlist/archive/master.tar.gz

bin/update-composer.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')"
4+
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
5+
ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
6+
7+
if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]
8+
then
9+
>&2 echo 'ERROR: Invalid installer checksum'
10+
rm composer-setup.php
11+
exit 1
12+
fi
13+
echo installing composer
14+
php composer-setup.php --quiet
15+
RESULT=$?
16+
rm composer-setup.php
17+
exit $RESULT

0 commit comments

Comments
 (0)