[SUCS Devel] [Git][sucssite/sucs-site][master] Try and do some js syntax checking

Imran Hussain imranh at sucs.org
Mon Nov 9 11:29:05 GMT 2015


Imran Hussain pushed to branch master at sucssite / sucs-site


Commits:
100fc6cf by Imran Hussain at 2015-11-09T11:28:42Z
Try and do some js syntax checking

- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,7 +10,8 @@ stages:
 before_script:
    - apt-get clean
    - apt-get update
-   - apt-get install -y php5-cli
+   - apt-get install -y php5-cli npm
+   - npm install -g jshint
 
 php-syntax-check:
   stage: test
@@ -19,7 +20,12 @@ php-syntax-check:
    - find components | xargs -n 1 php -l
    - find plugins | xargs -n 1 php -l
    - find lib | xargs -n 1 php -l
-  
+
+js-syntax-check:
+  stage: test
+  script:
+   - find htdocs/js | xargs -n 1 jshint --verbose
+
 fake-deploy-beta:
   stage: deploy
   script:



View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/100fc6cfde3a4be817a08caef5647917d2bc9ce6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20151109/5786e3de/attachment.html>


More information about the Devel mailing list