-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·75 lines (67 loc) · 2.64 KB
/
.travis.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
################################################################################
# Define Test Matrix
matrix:
include:
# Symfony 3.4 Branch
- php: 7.2
env: SF_VERSION="3.4.*"
- php: 7.4
env: SF_VERSION="3.4.*"
# Symfony 4.4 Branch
- php: 7.4
env: SF_VERSION="4.4.*"
allow_failures:
- env: SF_VERSION="4.4.*"
# Fast finish allows to set the build as "finished" even if the "allow_failures" matrix elements are not finished yet.
fast_finish: true
before_script:
- phpenv config-rm xdebug.ini
# Install composer dependencies,
# Create database, schema and fixtures
install:
# Copy Parameters
- echo "Configuring The Bundles"
- cp app/parameters.yml.dist app/parameters.yml
# Setup Travis
- curl -s https://raw.githubusercontent.com/SplashSync/Php-Bundle/master/src/Resources/travis/configure.sh | bash
# Setup Symfony Version if Required
- curl -s https://raw.githubusercontent.com/SplashSync/Php-Bundle/master/src/Resources/travis/build_symfony.sh | bash
# Configure For Phpstan vs PHP Versions
- curl -s https://raw.githubusercontent.com/SplashSync/Php-Bundle/master/src/Resources/travis/build_grumphp.sh | bash
# Install Symfony
- curl -s https://raw.githubusercontent.com/SplashSync/Php-Bundle/master/src/Resources/travis/install.sh | bash
# Run script
script:
# Execute Grump Testsuites
- php vendor/bin/grumphp run --testsuite=travis
- php vendor/bin/grumphp run --testsuite=csfixer
- php vendor/bin/grumphp run --testsuite=phpstan
# Execute Fuctionnal Testsuites
- php vendor/bin/phpunit
################################################################################
# Project language
language: php
# Allows use container-based infrastructure
sudo: false
#sudo: required
dist: trusty
################################################################################
# Start mysql service
services:
- mysql
################################################################################
# Cache composer packages so "composer install" is faster
cache:
directories:
- $HOME/.composer/cache/files
################################################################################
# Define an environment variable
env:
global:
- SYMFONY_DEPRECATIONS_HELPER=disabled
################################################################################
# After a build, send email notification with the build results
notifications:
email:
on_success: never # default: change
on_failure: never # default: always