forked from typhained/Strasbouquet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 911 Bytes
/
.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
language: php
php:
- '7.2'
before_install:
- if [ -d "./.idea" ]; then echo "Forbidden idea folder found ! Please, ignore them globaly..."; exit 2; fi
- if [ -d "./.vscode" ]; then echo "Forbidden vscode folder found ! Please, ignore them globaly..."; exit 2; fi
- if [ -d "./vendor" ]; then echo "Forbidden external libs folder found !"; exit 2; fi
- if [ $(find ./ -name .DS_Store) ]; then echo "Forbidden MacOS boring file found ! Please, ignore them globaly..."; exit 2; fi
install:
- composer install
script:
- ./vendor/bin/phpcs
- ./vendor/bin/phpstan analyse src --level 5
- ./vendor/bin/phpmd src text phpmd.xml
notifications:
email:
branches:
only:
- master
- dev