-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
101 lines (90 loc) · 3.53 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
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