-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (45 loc) · 1.46 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
language: php
php:
- 7.4
- 8.0
jobs:
include:
- php: 7.4
env: SNIFF=1
cache:
directories:
- $HOME/.composer/cache
before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- composer --version
install:
- composer install
script:
- >
echo;
echo "Running php lint";
composer run-script phplint
- >
if [[ "$SNIFF" != "1" ]];
then echo;
echo "Running phpstan";
composer run-script phpstan;
fi;
- >
if [[ "$SNIFF" != "1" ]];
then echo;
echo "Running unit tests";
composer run-script unit-test;
fi;
# - >
# echo;
# echo "Running functional tests";
# composer run-script test
- >
if [[ "$SNIFF" == "1" ]];
then composer run-script phpcs;
fi;
notifications:
slack:
secure: fT4tu3rUGyqLA2nzFdQW3Mf7SfICTnd/ihpG7vmSs9Cii4xBoAW+TatXGjgZPj/ys4Pk/4QVwWZGs+9NV4NTXsbdlsALfYX0Nm1TQ/SAjPcWx9fm6KE2J83kO1VOoGOcPX1BbF5mK4qqzfBj+gdVahXFOI3IgEELLNmnW9tbo7rbJW+UCDJsKKbUjob6VP6PtfH+pb/C3IwsZ5qonUx+U+HmBLA71w99BK/7UgXqhxq+lNY5Q9y1KEstkfwMs6BTzKwqzxBhD9JlTNJBDNVu24T793A8e9mhpiE4Cbtpps0bCoxZeCkn2h0ky/vlKNyx+yPHLVMeLYVOwfubqajYDOjZewNC7qSjJjeBEPAVAZPGd/S+QJ2YntavvO3R/SnaxKkNnd3X/NZ2IrxcrXp2NeUwC8X5VX7Q3qaL/1JmA8cmquigO916g4tO0sitxBNtnVw1KG/P6rzRuC/IAUGYJyLPGendqKeZBEoCGIsfepWCQcTaAtm6EnltF+O9YJmmWgGiwa14G7N9BmpxkgUooN8wcbR4cwZ8lJyj14OixMMr9Ds+/gg/jZF/waTErFnXnBZW2buqQbmWmxXtXFYAcw3cM0es7oLgHEYeXyobq41kXYeo5VP+z6gp0H3E6dY0CJKKAtqkJVrM1XbyFgSptWGYVI9kr/gsz4klIzJH5Eg=