Skip to content

Commit

Permalink
WIP: Migrate to GitLab
Browse files Browse the repository at this point in the history
  • Loading branch information
BadPixxel committed Jun 22, 2021
1 parent 6c11e1d commit deef027
Show file tree
Hide file tree
Showing 78 changed files with 3,727 additions and 1,768 deletions.
101 changes: 101 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
################################################################################
#
# This file is part of SplashSync Project.
#
# Copyright (C) Splash Sync <www.splashsync.com>
#
# 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 <[email protected]>
#
################################################################################

################################################################
# Set any variables we need
variables:
COMPOSER_MEMORY_LIMIT: -1
SYMFONY_DEPRECATIONS_HELPER: disabled

################################################################
# Defined Pipeline Stages
stages:
- tests
# - deploy

################################################################
# Functional Tests
################################################################

.core_tests: &core_tests
stage: tests
tags:
- Dedicated
################################################################################
# Install & Configure Environment
before_script:
# Setup Travis
- curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/ci/configure.sh | sh
# Deploy Symfony Files
- curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/symfony/deploy.sh | sh
# Setup Symfony Version & Create Database
- curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/symfony/configure.sh | sh
# Install Symfony
- curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/symfony/install.sh | sh

################################################################################
# Run Test Script
script:
# Execute Grumphp Testsuite
- curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/ci/grumphp.sh | sh
# Execute PhpUnit Tests
- vendor/bin/phpunit

################################################################################
# Run After Script
after_script:
- curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/ci/after.sh | sh

tests:php-7.4:
image: registry.gitlab.com/badpixxel-projects/php-sdk:php-7.4
<<: *core_tests

tests:php-7.3:
image: registry.gitlab.com/badpixxel-projects/php-sdk:php-7.3
<<: *core_tests

tests:php-7.2:
image: registry.gitlab.com/badpixxel-projects/php-sdk:php-7.2
<<: *core_tests

#tests:php-8.0:
# image: registry.gitlab.com/badpixxel-projects/php-sdk:php-8.0
# allow_failure: true
# <<: *core_tests

################################################################
# Build Documentation
################################################################
#pages:
# image: registry.gitlab.com/badpixxel-projects/php-sdk:jekyll
# stage: deploy
# tags:
# - Dedicated
# services:
# - docker:dind
# ################################################################################
# # Run Test Script
# script:
# # Deploy Symfony Files
# - curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/symfony/deploy.sh | sh
# # Run Composer to Build deps
# - curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/ci/composer.sh | bash
# # Build Documentation
# - php vendor/bin/grumphp run --tasks=build-docs
# artifacts:
# paths:
# - public
9 changes: 5 additions & 4 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php

/*
* This file is part of SplashSync Project.
*
* Copyright (C) 2015-2020 Splash Sync <www.splashsync.com>
* Copyright (C) 2021 BadPixxel <www.badpixxel.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand All @@ -20,6 +18,8 @@

/**
* Widgets Demo Symfony App Kernel
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class AppKernel extends Kernel
{
Expand Down Expand Up @@ -60,7 +60,8 @@ public function registerBundles()
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
}

if (('dev' === $this->getEnvironment()) && class_exists("\\Symfony\\Bundle\\WebServerBundle\\WebServerBundle")) {
if (('dev' === $this->getEnvironment())
&& class_exists("\\Symfony\\Bundle\\WebServerBundle\\WebServerBundle")) {
$bundles[] = new Symfony\Bundle\WebServerBundle\WebServerBundle();
}
}
Expand Down
4 changes: 1 addition & 3 deletions app/autoload.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php

/*
* This file is part of SplashSync Project.
*
* Copyright (C) 2015-2020 Splash Sync <www.splashsync.com>
* Copyright (C) 2021 BadPixxel <www.badpixxel.com>
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
Expand Down
22 changes: 4 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

"require": {
"php": "~7.2",
"ext-json": "*",

"symfony/monolog-bundle": "^2.0|^3.0",

"doctrine/orm": "^2.5",
Expand All @@ -55,24 +57,8 @@

"splash/php-bundle": "dev-master",
"splash/console": "dev-master",

"composer/composer": "^1.5",
"j13k/yaml-lint": "^1.1",
"jakub-onderka/php-parallel-lint": "^1.0",
"phpmd/phpmd": "*",
"phpro/grumphp": "^0.16",
"sclable/xml-lint": "^0.2.4",
"sebastian/phpcpd": ">3.0",
"seld/jsonlint": "^1.7",
"sensiolabs/security-checker": "*",
"squizlabs/php_codesniffer": "^3.2",
"escapestudios/symfony2-coding-standard": "^3.4",
"friendsofphp/php-cs-fixer": "*",

"phpstan/phpstan": "^0.12",
"phpstan/phpstan-doctrine": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan-symfony": "^0.12"

"badpixxel/php-sdk": "dev-main"
},

"scripts": {
Expand Down
Loading

0 comments on commit deef027

Please sign in to comment.