From fef5e45d64daf011f7d9259f2c6c81c347312f71 Mon Sep 17 00:00:00 2001 From: Michiel Dethmers Date: Mon, 5 Jul 2021 20:57:43 +0100 Subject: [PATCH] update phplint version --- .github/workflows/build-release.yml | 2 +- Vagrantfile | 20 +++++++---------- composer.lock | 14 ++++++------ public_html/lists/config/config.php | 35 ++++++++++++++++++++++++++--- tests/Makefile | 4 ++-- 5 files changed, 50 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index b7eb36eec..9e2f83f50 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -89,7 +89,7 @@ jobs: sudo php -S 0.0.0.0:80 -t public_html > /dev/null 2>&1 & - name: Check PHP syntax errors - uses: overtrue/phplint@2.3.5 + uses: overtrue/phplint@2.4.1 with: path: ./public_html options: --exclude=base/vendor diff --git a/Vagrantfile b/Vagrantfile index e57816422..b5d866432 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -8,13 +8,8 @@ ## below Vagrant.configure("2") do |config| - config.vagrant.plugins = [ - "vagrant-docker-compose", - ] config.vm.box = "ubuntu/bionic64" - config.vm.provision :docker - config.vm.provision :docker_compose, - compose_version: "1.22.0" + config.vm.network "public_network" config.vm.provider "virtualbox" do |v| v.memory = 10640 @@ -31,9 +26,7 @@ Vagrant.configure("2") do |config| apt install software-properties-common add-apt-repository ppa:ondrej/php DEBIAN_FRONTEND=noninteractive apt update - DEBIAN_FRONTEND=noninteractive apt install -y composer mariadb-client mariadb-server postfix chromium-chromedriver firefox openjdk-8-jre-headless fonts-liberation - DEBIAN_FRONTEND=noninteractive apt install -y php7.0 php7.0-mbstring php7.0-curl php7.0-mysql php7.0-xml php7.0-zip - DEBIAN_FRONTEND=noninteractive apt install -y php7.1 php7.1-mbstring php7.1-curl php7.1-mysql php7.1-xml php7.1-zip + DEBIAN_FRONTEND=noninteractive apt install -y make mariadb-client mariadb-server postfix chromium-chromedriver firefox openjdk-8-jre-headless fonts-liberation xdg-utils DEBIAN_FRONTEND=noninteractive apt install -y php7.2 php7.2-mbstring php7.2-curl php7.2-mysql php7.2-xml php7.2-zip DEBIAN_FRONTEND=noninteractive apt install -y php7.3 php7.3-mbstring php7.3-curl php7.3-mysql php7.3-xml php7.3-zip 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| update-alternatives --set phpize /usr/bin/phpize$PHPVERSION update-alternatives --set php-config /usr/bin/php-config$PHPVERSION [[ ! -z $(which google-chrome) ]] || { - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb + [[ ! -f google-chrome-stable_current_amd64.deb ]] && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb dpkg -i google-chrome-stable_current_amd64.deb } google-chrome --version rm -rf vendor - composer install + bin/update-composer.sh + sudo -u vagrant php composer.phar update + ln -s /vagrant/vendor/bin/chromedriver /usr/local/bin/chromedriver + ln -s /vagrant/vendor/bin/geckodriver /usr/local/bin/geckodriver service postfix stop service apache2 stop service mysqld start cp -fv tests/ci/config.php public_html/lists/config/config.php - cp -fv tests/default.behat.yml tests/behat.yml + cp -fv tests/ci/behat.yml tests/behat.yml [[ ! -d public_html/lists/admin/ui/phplist-ui-bootlist ]] && { cd public_html/lists/admin/ui/ wget https://github.com/phpList/phplist-ui-bootlist/archive/master.tar.gz diff --git a/composer.lock b/composer.lock index 0d8deb9c4..572972878 100644 --- a/composer.lock +++ b/composer.lock @@ -2361,16 +2361,16 @@ }, { "name": "instaclick/php-webdriver", - "version": "1.4.7", + "version": "1.4.9", "source": { "type": "git", "url": "https://github.com/instaclick/php-webdriver.git", - "reference": "b5f330e900e9b3edfc18024a5ec8c07136075712" + "reference": "961b12178cb71f8667afaf2f66ab3e000e060e1c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/instaclick/php-webdriver/zipball/b5f330e900e9b3edfc18024a5ec8c07136075712", - "reference": "b5f330e900e9b3edfc18024a5ec8c07136075712", + "url": "https://api.github.com/repos/instaclick/php-webdriver/zipball/961b12178cb71f8667afaf2f66ab3e000e060e1c", + "reference": "961b12178cb71f8667afaf2f66ab3e000e060e1c", "shasum": "" }, "require": { @@ -2418,9 +2418,9 @@ ], "support": { "issues": "https://github.com/instaclick/php-webdriver/issues", - "source": "https://github.com/instaclick/php-webdriver/tree/1.x" + "source": "https://github.com/instaclick/php-webdriver/tree/1.4.9" }, - "time": "2019-09-25T09:05:11+00:00" + "time": "2021-06-28T22:23:20+00:00" }, { "name": "psr/http-message", @@ -3987,5 +3987,5 @@ "php": ">=7.0" }, "platform-dev": [], - "plugin-api-version": "2.0.0" + "plugin-api-version": "2.1.0" } diff --git a/public_html/lists/config/config.php b/public_html/lists/config/config.php index 6456ddeb1..117f13df2 100644 --- a/public_html/lists/config/config.php +++ b/public_html/lists/config/config.php @@ -1,5 +1,7 @@