Skip to content
Snippets Groups Projects
Commit bdce160c authored by Imran Hussain's avatar Imran Hussain
Browse files

Try and speed up ci

parent 9211229c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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