-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
25 lines (25 loc) · 961 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.3'
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 "./.env.local" ]; then echo "Forbidden configuration file found !"; 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
- yarn --ignore-engines install
script:
- ./bin/phpcs
- ./bin/phpstan analyse src --level max
- ./bin/phpmd src text phpmd.xml
- ./bin/eslint assets/js
- ./bin/sass-lint -c sass-linter.yml -v
notifications:
email:
branches:
only:
- master
- dev