-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
77 lines (69 loc) · 2.81 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
################################################################################
#
# 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:
# Configure mysql environment variables (https://hub.docker.com/r/_/mysql/)
MYSQL_DATABASE: symfony
MYSQL_ROOT_PASSWORD: Tasking-Bundle
COMPOSER_MEMORY_LIMIT: -1
SYMFONY_DEPRECATIONS_HELPER: disabled
################################################################
# Defined Pipeline Stages
stages:
- tests
################################################################
# Functional Tests
################################################################
.core_tests: &core_tests
stage: tests
tags:
- Dedicated
services:
- mysql:5.7
artifacts:
when: always
reports:
junit: "$CI_PROJECT_DIR/*-report.xml"
################################################################################
# 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 --log-junit $CI_PROJECT_DIR/test-report.xml
################################################################################
# Run After Script
after_script:
- curl -s https://raw.githubusercontent.com/BadPixxel/Php-Sdk/main/ci/after.sh | sh
tests:php-8.1:
image: registry.gitlab.com/badpixxel-projects/php-sdk:php-8.1
<<: *core_tests
tests:php-8.0:
image: registry.gitlab.com/badpixxel-projects/php-sdk:php-8.0
<<: *core_tests