Merge pull request #1116 from ArthurHoaro/ci/eslint
Use Travis stages to run JS tests separately
This commit is contained in:
commit
73c5af594c
2 changed files with 32 additions and 11 deletions
|
@ -10,7 +10,7 @@ trim_trailing_whitespace = true
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
[*.{htaccess,html,js,json,xml}]
|
[*.{htaccess,html,js,json,xml,yml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[*.php]
|
[*.php]
|
||||||
|
|
41
.travis.yml
41
.travis.yml
|
@ -1,23 +1,44 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
dist: trusty
|
dist: trusty
|
||||||
language: php
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- language: php
|
||||||
|
php: 7.2
|
||||||
|
- language: php
|
||||||
|
php: 7.1
|
||||||
|
- language: php
|
||||||
|
php: 7.0
|
||||||
|
- language: php
|
||||||
|
php: 5.6
|
||||||
|
- language: node_js
|
||||||
|
node_js: 8
|
||||||
|
cache:
|
||||||
|
yarn: true
|
||||||
|
directories:
|
||||||
|
- $HOME/.cache/yarn
|
||||||
|
|
||||||
|
install:
|
||||||
|
- yarn install
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- PATH=${PATH//:\.\/node_modules\/\.bin/}
|
||||||
|
|
||||||
|
script:
|
||||||
|
- yarn run build # Just to be sure that the build isn't broken
|
||||||
|
- make eslint
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
yarn: true
|
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.composer/cache
|
- $HOME/.composer/cache
|
||||||
- $HOME/.cache/yarn
|
|
||||||
php:
|
|
||||||
- 7.2
|
|
||||||
- 7.1
|
|
||||||
- 7.0
|
|
||||||
- 5.6
|
|
||||||
install:
|
install:
|
||||||
- yarn install
|
|
||||||
- composer install --prefer-dist
|
- composer install --prefer-dist
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- PATH=${PATH//:\.\/node_modules\/\.bin/}
|
- PATH=${PATH//:\.\/node_modules\/\.bin/}
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make clean
|
- make clean
|
||||||
- make check_permissions
|
- make check_permissions
|
||||||
- make eslint
|
|
||||||
- make all_tests
|
- make all_tests
|
||||||
|
|
Loading…
Reference in a new issue