-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
executable file
·44 lines (37 loc) · 1.19 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
language: php
php:
- "7.4"
- "8.0"
- nightly
go:
- "1.x"
# node_js:
# - "14"
jobs:
allow_failures:
- php: nightly
before_script:
- nvm install 14.8
# fossa integration
- "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | sudo bash"
# go to be sure in case its a 32 bit machine. Also, it is easier this way
- go get -u github.com/fogleman/primitive
# setup environement by installing dependencies
- npm install
- composer update ${COMPOSER_FLAGS} --dev --prefer-dist --prefer-stable --no-interaction
- ./bin/simple-phpunit install
script:
# run fossa to upload a dependency report back to the FOSSA instance.
- fossa init
- fossa analyze
- fossa
- composer validate --strict --no-check-lock
# simple-phpunit is the PHPUnit wrapper provided by the PHPUnit Bridge component and
# it helps with testing legacy code and deprecations (composer require symfony/phpunit-bridge)
#- ./bin/simple-phpunit $PHPUNIT_FLAGS
- composer run code-sniffer
- XDEBUG_MODE=coverage composer run test
- composer run static-analysis
#- composer run mess-detector
after_success:
- travis_retry php ./bin/php-coveralls -v