diff --git a/.travis.yml b/.travis.yml index 42b9355e1a532b6d362cc327443ba10aa11409cd..dad64ee105f0fd1a5eea862d8c10df744c76b0fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,7 @@ env: global: - CORE_BRANCH=master - TEST_JS=FALSE + - LINT_JS=FALSE - PHP_COVERAGE=FALSE - PACKAGE=FALSE - NIGHTLY=FALSE @@ -32,7 +33,7 @@ env: matrix: include: - php: 7.1 - env: "DB=mysql CORE_BRANCH=master TEST_JS=TRUE" + env: "DB=mysql CORE_BRANCH=master TEST_JS=TRUE LINT_JS=TRUE" - php: 7.1 env: "DB=mysql CORE_BRANCH=master PACKAGE=TRUE" - php: 7.1 @@ -112,6 +113,9 @@ script: - sh -c "if [ '$TEST_JS' = 'TRUE' ]; then npm test; fi" # - sh -c "if [ '$TEST_JS' = 'TRUE' ]; then cat ./coverage/*/lcov.info | ./node_modules/coveralls/bin/coveralls.js; fi" + # Run JS lint + - sh -c "if [ '$LINT_JS' = 'TRUE' ]; then npm run lint; fi" + # Run PHP tests - composer run test - if [[ "$PHP_COVERAGE" = "TRUE" ]]; then wget https://scrutinizer-ci.com/ocular.phar;