-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
54 lines (43 loc) · 1.11 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
language: php
sudo: false
dist: trusty
php: 7.2
node_js: 8
os: linux
env:
global:
- COMPOSER_DISCARD_CHANGES=1
cache:
directories:
- $HOME/.composer/cache
- vendor
- node_modules
stages:
- check coding style
- static code analysis
before_install:
- phpenv config-rm xdebug.ini || echo "xdebug not available"
- echo 'opcache.enable=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo 'opcache.enable_cli=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- travis_retry npm i -g npm
install:
- travis_retry composer install --optimize-autoloader --prefer-dist --no-progress --no-interaction --no-suggest -vv
- travis_retry yarn
script: skip
jobs:
include:
- stage: test
php: 7.2
script:
- ./bin/prepare
- yes '' | ./bin/console parse ./files/travis-test.txt --no-output
- stage: check coding style
php: 7.2
script:
- composer php-cs-fixer-check
- composer prettier-check
- stage: static code analysis
php: 7.2
script:
- composer phpstan
- composer psalm -- --shepherd