forked from nepada/file-upload-control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (44 loc) · 1.48 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
language: php
php:
- 7.4
env:
- COMPOSER_ARGS=""
- COMPOSER_ARGS="--prefer-stable"
- COMPOSER_ARGS="--prefer-stable --prefer-lowest"
jobs:
include:
- name: JS test + Code Standard Checker
language: node_js
node_js: lts/*
install:
- travis_retry npm install
script:
- npm run lint
- npm run build
- stage: Code Standard Checker
php: 7.4
script:
- vendor/bin/phpcs
- stage: Code Coverage
php: 7.4
script:
- vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src
after_script:
- travis_retry wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar
- php php-coveralls.phar --verbose --config tests/coveralls.yml
allow_failures:
- stage: Code Coverage
install:
- travis_retry composer update --no-interaction --prefer-dist $COMPOSER_ARGS
script:
- vendor/bin/parallel-lint -e php,phpt --exclude tests/temp src tests
- vendor/bin/tester -s -p php -c tests/php.ini tests
- vendor/bin/phpstan.phar analyse
- vendor/bin/phpstan.phar analyse -c phpstan.tests.neon.dist
after_failure:
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
sudo: false
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm