forked from MyIntervals/emogrifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (50 loc) · 1.01 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
sudo: false
language: php
php:
- "7.4"
cache:
directories:
- vendor
- $HOME/.composer/cache
env:
matrix:
- DEPENDENCIES="--prefer-lowest"
- DEPENDENCIES=""
before_install:
- phpenv config-rm xdebug.ini || echo "xdebug not available"
install:
- >
export IGNORE_PLATFORM_REQS="$(composer php:version |grep -q '^7.3' && printf -- --ignore-platform-reqs)";
echo;
echo "Updating the dependencies";
composer update $IGNORE_PLATFORM_REQS --with-dependencies $DEPENDENCIES;
composer show;
script:
- >
echo;
echo "Validating the composer.json";
composer validate --no-check-all --no-check-lock --strict;
- >
echo;
echo "Linting all PHP files";
composer ci:php:lint;
- >
echo;
echo "Running the unit tests";
composer ci:tests:unit;
- >
echo;
echo "Running PHPMD";
composer ci:php:md;
- >
echo;
echo "Running Psalm";
composer ci:php:psalm;
- >
echo;
echo "Running PHP_CodeSniffer";
composer ci:php:sniff;
- >
echo;
echo "Running PHP-CS-Fixer";
composer ci:php:fixer;