Skip to content
Snippets Groups Projects
Commit c1e0a083 authored by sahalsaad's avatar sahalsaad
Browse files

Add lint to travis pipeline

parent 61d685cc
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment