-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
28 lines (23 loc) · 839 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
26
27
28
dist: trusty
language: php
php:
- 7.0
cache:
apt: true
directories:
- $HOME/.composer/cache
env:
global:
- COMPOSER_BIN_DIR=~/bin
matrix:
- CODING_STANDARD=Ecg SEVERITY=5
- CODING_STANDARD=MEQP1 SEVERITY=5
- CODING_STANDARD=MEQP1 SEVERITY=9
matrix:
allow_failures:
- env: CODING_STANDARD=Ecg SEVERITY=5
- env: CODING_STANDARD=MEQP1 SEVERITY=5
before_install: test -n "$GITHUB_TOKEN" && echo "Found GitHub token" && composer config github-oauth.github.com "$GITHUB_TOKEN" || echo "No GitHub token found"
install: composer install --no-interaction --prefer-dist
before_script: phpcs --config-set installed_paths vendor/magento-ecg/coding-standard,vendor/magento/marketplace-eqp
script: phpcs ./ --ignore=./vendor --standard="$CODING_STANDARD" --severity="$SEVERITY" --extensions=phtml,php,js,css