Commit bdce160c authored by Imran Hussain's avatar Imran Hussain
Browse files

Try and speed up ci

parent 9211229c
Loading
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -6,26 +6,29 @@ stages:
  - test
  - deploy

# make sure php is in the image
before_script:
   - apt-get clean
   - apt-get update
   - apt-get install -y php5-cli npm
   - ln -s /usr/bin/nodejs /usr/bin/node
   - npm install -g jshint

#before_script:

php-syntax-check:
  stage: test
  script:
   - apt-get clean
   - apt-get update
   - apt-get install -y php5-cli        
   - php -l htdocs/index.php
   - find components | xargs -n 1 php -l
   - find plugins | xargs -n 1 php -l
   - find lib | xargs -n 1 php -l
   - find components -name *.php | xargs -n 1 php -l
   - find plugins -name *.php | xargs -n 1 php -l
   - find lib -name *.php | xargs -n 1 php -l

js-syntax-check:
  stage: test
  script:
   - find htdocs/js | xargs -n 1 jshint --verbose
   - apt-get clean
   - apt-get update
   - apt-get install -y npm
   - ln -s /usr/bin/nodejs /usr/bin/node
   - npm install -g jshint        
   - find htdocs/js -name *.js | xargs -n 1 jshint --verbose

fake-deploy-beta:
  stage: deploy