[SUCS Devel] [Git][sucssite/sucs-site][master] Try and speed up ci
Imran Hussain
imranh at sucs.org
Mon Nov 9 11:42:28 GMT 2015
Imran Hussain pushed to branch master at sucssite / sucs-site
Commits:
bdce160c by Imran Hussain at 2015-11-09T11:42:15Z
Try and speed up ci
- - - - -
1 changed file:
- .gitlab-ci.yml
Changes:
=====================================
.gitlab-ci.yml
=====================================
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/bdce160c39105b03d71c54251e3ba6c1d5d40e71
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20151109/d06fdc2d/attachment-0001.html>
More information about the Devel
mailing list