From 831d52d03104fcbe2275ae81dd8a2195fee2eefb Mon Sep 17 00:00:00 2001 From: BadPixxel Date: Wed, 15 Feb 2023 17:50:02 +0100 Subject: [PATCH] WIP: Docs Migration --- .gitlab-ci.yml | 12 +--- .travis.yml | 180 ------------------------------------------------- README.md | 5 +- robo.yml | 23 +++++++ 4 files changed, 28 insertions(+), 192 deletions(-) delete mode 100644 .travis.yml create mode 100644 robo.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 11f8726f..98d40ef0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -128,19 +128,13 @@ F-Ps-1.7-Php-7.4: ## Build Documentation ################################################################# pages: - image: registry.gitlab.com/splashsync/php-console:pages + image: jekyll/minimal:latest stage: deploy - tags: ['Dedicated'] - retry: 2 - services: - - docker:dind + tags: [ Dedicated ] ################################################################################ # Run Test Script script: - # Run Composer to Build deps - - curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/ci/composer.sh | bash - # Build Documentation - - php modules/splashsync/vendor/bin/grumphp run --tasks=build-docs + - wget -qO - https://gitlab.com/badpixxel-robo/jekyll/-/raw/main/scripts/gitlab-pages.sh | sh artifacts: paths: - public diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 88500225..00000000 --- a/.travis.yml +++ /dev/null @@ -1,180 +0,0 @@ -################################################################################ -# -# This file is part of SplashSync Project. -# -# Copyright (C) Splash Sync -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# -# For the full copyright and license information, please view the LICENSE -# file that was distributed with this source code. -# -# @author Bernard Paquier -# -################################################################################ - -################################################################################ -# Travis CI Configuration File -################################################################################ - -jobs: - include: - - # Prestashop develop Branch -# - php: 7.3 -# env: PS_VERSION=develop -# - php: 7.1 -# env: PS_VERSION=develop - - # Prestashop 1.7.7.x Branch - - php: 7.4 - env: PS_VERSION=1.7.7.x - - php: 7.2 - env: PS_VERSION=1.7.7.x - - # Prestashop 1.7.6.x Branch - - php: 7.3 - env: PS_VERSION=1.7.6.x - - # Prestashop 1.7.5.x Branch - - php: 7.2 - env: PS_VERSION=1.7.5.x - - # Prestashop 1.7.4.x Branch - - php: 7.3 - env: PS_VERSION=1.7.4.x - - # Prestashop 1.7.1.x Branch - - php: 7.2 - env: PS_VERSION=1.7.1.x - - allow_failures: - - env: PS_VERSION=develop - - # Fast finish allows to set the build as "finished" even if the "allow_failures" matrix elements are not finished yet. - fast_finish: true - - - -################################################################################ -# TEST SCRIPTS -################################################################################ - -################################################################################ -# Install & Configure Environnement -#before_install: -# - bash travis/before.sh - -################################################################################ -# Install & Configure Environnement -install: - - ################################################################################ - # Setup Travis - - curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/travis/configure.sh | sh - # Build Module (Composer) - - curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/travis/composer.sh | sh - # Move Module to Tmp Folder - - bash travis/module/move.sh - - ################################################################################ - # Install Prestashop + WebServer (Apache & PHP-Fpm) - - bash $SCRIPTS_DIR/prestashop/install.sh - - ################################################################################ - # Install Module - - bash $SCRIPTS_DIR/module/install.sh - - bash $SCRIPTS_DIR/module/setup.sh - -################################################################################ -# Run Test Script -script: - - ################################################################################ - # Run Grumphp Main Test Sequence - - cd $TMP_DIR - - php modules/splashsync/vendor/bin/grumphp run -n --testsuite=travis - - - cd $TRAVIS_BUILD_DIR - - ################################################################################ - # Run Grumphp CsFixer Test Sequence - - if [[ ${TRAVIS_PHP_VERSION:0:3} > "7.1" ]]; then php modules/splashsync/vendor/bin/grumphp run -n --testsuite=csfixer; fi - ################################################################################ - # Run Grumphp Phpstan Test Sequence - - if [[ ${TRAVIS_PHP_VERSION:0:3} > "7.1" ]]; then php modules/splashsync/vendor/bin/grumphp run -n --testsuite=phpstan; fi - - ################################################################################ - # Run PhpUnit Core Test Sequence (Will Enable the Module) - - modules/splashsync/vendor/bin/phpunit -c travis/phpunit.xml.dist modules/splashsync/vendor/splash/phpcore/Tests/Core/ - - ################################################################################ - # ALL PHP => Run PhpUnit Local Sequence with No Data Inside - - modules/splashsync/vendor/bin/phpunit -c travis/phpunit.xml.dist --testsuite=Local - - ################################################################################ - # Run PhpUnit Test Sequence (With Coverage) - # - if [[ ${TRAVIS_PHP_VERSION:0:1} > "5" ]]; then phpdbg -qrr -d memory_limit=-1 modules/splashsync/vendor/bin/phpunit -c travis/phpunit.xml.dist; fi - # Run PhpUnit Test Sequence (NO Coverage) - - php modules/splashsync/vendor/bin/phpunit -c travis/phpunit.xml.dist - - ################################################################################ - # Run PhpUnit Product with MSF Sequence - - php travis/setup_shops.php && php travis/setup_shops.php - - modules/splashsync/vendor/bin/phpunit -c travis/phpunit.products.xml - -################################################################################ -# Run After Script -after_script: - - cd $TMP_DIR - - bash $SCRIPTS_DIR/after.sh - -################################################################################ -# GENERIC CONFIGURATION -################################################################################ - -################################################################################ -# Project language -language: php -os: linux -#dist: focal - -################################################################################ -# Tell Travis CI we're using MySQL -services: - - mysql - -################################################################################ -# Tell Travis CI we're using Cache -cache: - directories: - - $HOME/.composer/cache - -################################################################################ -# Global Env Configuration -env: - global: - - SYMFONY_DEPRECATIONS_HELPER=disabled - - GRUMPHP_BIN_DIR="modules/splashsync/vendor/bin" - - TMP_DIR=/tmp/SplashSync - - SCRIPTS_DIR=/tmp/SplashSync/travis - -################################################################################ -# Tell Travis CI we're using Addons -addons: - apt: - packages: - - apache2 - - postfix - - libapache2-mod-fastcgi - - libappindicator1 - - fonts-liberation - -################################################################################ -# After a build, send email notification with the build results -notifications: - email: - on_success: never # default: change - on_failure: never # default: always diff --git a/README.md b/README.md index 1736c44a..e550d0b1 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,6 @@ Splash Php Module for Prestashop E-Commerce Platforms. This module implement Splash Sync connector for Prestashop. It provides access to multiples Objects for automated synchronization though Splash Sync dedicated protocol. -[![Build Status](https://travis-ci.org/SplashSync/Prestashop.svg?branch=master)](https://travis-ci.org/SplashSync/Prestashop) [![Latest Stable Version](https://poser.pugx.org/splash/prestashop/v/stable)](https://packagist.org/packages/splash/prestashop) [![Latest Unstable Version](https://poser.pugx.org/splash/prestashop/v/unstable)](https://packagist.org/packages/splash/prestashop) [![License](https://poser.pugx.org/splash/prestashop/license)](https://packagist.org/packages/splash/prestashop) @@ -19,8 +18,8 @@ It provides access to multiples Objects for automated synchronization though Spl ## Requirements -* PHP 7.2+ -* PrestaShop 1.6+ +* PHP 7.4 | 8.0+ +* PrestaShop 1.7+ * An active Splash Sync User Account ## Documentation diff --git a/robo.yml b/robo.yml new file mode 100644 index 00000000..e669992a --- /dev/null +++ b/robo.yml @@ -0,0 +1,23 @@ +################################################################################ +# +# Copyright (C) BadPixxel +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# For the full copyright and license information, please view the LICENSE +# file that was distributed with this source code. +# +################################################################################ + +################################################################################ +# Jekyll Website / Documentation Builder Config. +################################################################################ +task: + jekyll: + settings: + # Relative Path to your Site Contents (Default: src/Resources/jekyll) + source: 'modules/splashsync/docs' + # generic Content Directory to Add + generic_contents: ["splash-faq", "php-docker"]