From def39d0dd7a81a4af9ad68b62c9e9823fbc2b38e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 10 Aug 2019 12:31:32 +0200 Subject: Run Unit Tests against PHP 7.4 Bump PHPUnit version and fix unit test - Globals are handled differently and are persistent through tests - Tests without assertions are marked as risky: some of them are just meant to check that no error is raised. --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index d1415423..f466c317 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,8 @@ dist: trusty matrix: include: + - language: php + php: 7.4 - language: php php: 7.3 - language: php -- cgit v1.2.3 From 7e884740f1b4350d0e03b710e3cf2c6d4186f050 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 6 Jul 2020 08:25:34 +0200 Subject: Travis CI: upgrade distribution and remove deprecated sudo This upgrade fixes PHP 7.4 fatal error builds, because dist < xenial do not include php-gd with PHP 7.4. --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index f466c317..d04a45d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,4 @@ -sudo: false -dist: trusty +dist: bionic matrix: include: -- cgit v1.2.3 From 91a21c272960889afd4eaa431a3d29b7785b6efc Mon Sep 17 00:00:00 2001 From: nodiscc Date: Sat, 16 May 2020 12:54:51 +0200 Subject: **General rewording, proof-reading, deduplication, shortening, reordering, simplification, cleanup/formatting/standardization** - standardize page names, rework documentation structure, update TOC - use same example paths everywhere - level 1 titles on all pages - fix broken links - .md suffix on all page links (works both from readthedocs and github repository views) **Server:** A full and concise installation guide with examples is a frequent request. The documentation should provide such a guide for basic installation needs, while explaining alternative/advanced configuration at the end. Links to reference guides and documentation should be used more frequently to avoid recommending an outdated or excessively complex configuration. - server: move most server-related info to server-configuration.md, cleanup/shorten - server: update list of php dependencies/libraries, link to composer.json - server: installation: support 3 install methods (from release zip, from sources, using docker) - server: installation: use rsync instead of mv as mv results will change depending of taget directory already existing or not - server: add example/basic usage of certbot - server, upgrade, installation: update file permissions setup, use sudo for upgrade operations in webserver document root - server: apache: add comments to configuration, fix and factorize file permissions setup, set cache-control header, deny access to dotfiles, add missing apache config steps, add http->https redirect example - server: nginx: refactor nginx configuration, add comments, DO log access to denied/protected files - server: add links to MDN for x-forwarded-* http headers explanation, cleanup/clarify robots.txt and crawlers section - server: bump file upload size limit to 100MB we have reports of bookmark exports weighing +40MB - i have a 13MB one here - server: simplify phpinfo documentation - server: move backup and restore information to dedicated page - docker: move all docker docs to Docker.md, simplify/ docker setup, add docker-compose.yml example, replace docker-101 with docker cheatsheet - troubleshooting: move all troubleshooting documentation to troubleshooting.md **Usage:** - index: add getting started section on index page - features/usage: move all usage-related documentation to usage.md, add links from the main feature list to corresponding usage docs, clarify/reword features list - shaarli configuration: add note about configuring from web interface **Removed:** - remove obsolete/orphan images - remove obsolete shaarchiver example - remove outdated "decode datastore content" snippet **Development:** - development: move development-related docs (static analysis, CI, unit tests, 3rd party libs, link structure/directory, guidelines, security....) to dev/ directory - development: Merge several pages to development.md - **Breaking change?:** remove mentions of 'stable' branch, switch to new branch/release model (master=latest commit, release=latest tag) - **Breaking change?:** refer to base sharing unit as "Shaare" everywhere (TODO: reflect changes in the code?) doc: update featues list/link to usage.md for details - development: directory structure: add note about required file permissions - .travis-ci.yml: add comments - .htaccess: add comment --- .travis.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index d04a45d1..c414967b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ dist: bionic matrix: include: + # jobs for each supported php version - language: php php: 7.4 - language: php @@ -10,23 +11,22 @@ matrix: php: 7.2 - language: php php: 7.1 + # jobs for frontend builds - language: node_js node_js: 8 cache: yarn: true directories: - $HOME/.cache/yarn - install: - yarn install - before_script: - PATH=${PATH//:\.\/node_modules\/\.bin/} - script: - - yarn run build # Just to be sure that the build isn't broken - - make eslint - - make sasslint + - yarn run build # verify successful frontend builds + - make eslint # javascript static analysis + - make sasslint # linter for SASS syntax + # jobs for documentation builds - language: python python: 3.6 cache: @@ -42,6 +42,7 @@ cache: - $HOME/.composer/cache install: + # install/update composer and php dependencies - composer install --prefer-dist before_script: -- cgit v1.2.3 From 98325d646e0e94ccb3a3fdda1ca688ad0d888aa6 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 22 Sep 2020 17:57:54 +0200 Subject: Bump NodeJS version on travis build --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index c414967b..fb95235c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ matrix: php: 7.1 # jobs for frontend builds - language: node_js - node_js: 8 + node_js: 10 cache: yarn: true directories: -- cgit v1.2.3 From e011be01701e7f0f2bee9a5de3f062a5ca1b17df Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 26 Sep 2020 14:33:27 +0200 Subject: Travis CI: run composer update instead of install And ignore PHP 7.1 platform requirement, in order to get matching version of PHPUnit --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index fb95235c..afccce08 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,7 +43,7 @@ cache: install: # install/update composer and php dependencies - - composer install --prefer-dist + - composer update --ignore-platform-reqs before_script: - PATH=${PATH//:\.\/node_modules\/\.bin/} -- cgit v1.2.3 From 24225f63324bd1118b008518abfc82a136ad997e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 26 Sep 2020 14:43:21 +0200 Subject: tmp --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index afccce08..af04a022 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,7 +43,8 @@ cache: install: # install/update composer and php dependencies - - composer update --ignore-platform-reqs + - composer config --unset platform && composer config platform.php $TRAVIS_PHP_VERSION + - composer update before_script: - PATH=${PATH//:\.\/node_modules\/\.bin/} -- cgit v1.2.3 From 2b7a7bc928fb7fc171138e248d3aa1d86d5b62f9 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 29 Sep 2020 11:43:18 +0200 Subject: Run CI against PHP 8.0 --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index af04a022..35649e2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,8 @@ dist: bionic matrix: include: # jobs for each supported php version + - language: php + php: nightly # PHP 8.0 - language: php php: 7.4 - language: php @@ -43,6 +45,7 @@ cache: install: # install/update composer and php dependencies + - if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then export TRAVIS_PHP_VERSION="8.0.0"; fi - composer config --unset platform && composer config platform.php $TRAVIS_PHP_VERSION - composer update -- cgit v1.2.3 From a5a9cf23acd1248585173aa32757d9720b5f2d62 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 29 Sep 2020 14:41:40 +0200 Subject: Compatibility with PHPUnit 9 --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 35649e2a..5f86d338 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,9 @@ matrix: # jobs for each supported php version - language: php php: nightly # PHP 8.0 + install: + - composer self-update --2 + - composer update --ignore-platform-req=php - language: php php: 7.4 - language: php @@ -45,7 +48,6 @@ cache: install: # install/update composer and php dependencies - - if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then export TRAVIS_PHP_VERSION="8.0.0"; fi - composer config --unset platform && composer config platform.php $TRAVIS_PHP_VERSION - composer update -- cgit v1.2.3 From ab58f2542072e6bf34acd862f6cfed84b33feb29 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 29 Sep 2020 15:00:11 +0200 Subject: Compatibility with PHP 8 --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 5f86d338..25304120 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,9 @@ matrix: install: - composer self-update --2 - composer update --ignore-platform-req=php + - composer remove phpunit/phpunit + - composer require --dev --ignore-platform-req=php phpunit/php-text-template ^2.0 + - composer require --dev --ignore-platform-req=php phpunit/phpunit ^9.0 - language: php php: 7.4 - language: php -- cgit v1.2.3 From 3a49307c3d193d022aa10d6597c4db189486f18f Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 29 Sep 2020 18:44:52 +0200 Subject: Ignore PHP deps when removing phpunit in PHP 8.0 environment --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 25304120..d7460947 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ matrix: install: - composer self-update --2 - composer update --ignore-platform-req=php - - composer remove phpunit/phpunit + - composer remove --dev --ignore-platform-req=php phpunit/phpunit - composer require --dev --ignore-platform-req=php phpunit/php-text-template ^2.0 - composer require --dev --ignore-platform-req=php phpunit/phpunit ^9.0 - language: php -- cgit v1.2.3