[SUCS Devel] [Git][sucssite/sucs-site][master] Rewrite the gitlabci file.
Imran Hussain
imranh at sucs.org
Mon Nov 9 10:27:54 GMT 2015
Imran Hussain pushed to branch master at sucssite / sucs-site
Commits:
377fe00e by Imran Hussain at 2015-11-09T10:27:27Z
Rewrite the gitlabci file.
- - - - -
1 changed file:
- .gitlab-ci.yml
Changes:
=====================================
.gitlab-ci.yml
=====================================
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,40 @@
-before_script:
- - apt-get clean
- - apt-get update
- - apt-get install -y php5-cli
+# specify what docker image
+# go with the default image for now and mangle it
+#image: ruby:2.1
-syntax:
+stages:
+ - prep
+ - test
+ - deploy
+
+# we don't need to do anything before each stage
+#before_script:
+
+install-php:
+ stage: prep
+ script:
+ - apt-get clean
+ - apt-get update
+ - apt-get install -y php5-cli
+
+php-syntax-check:
+ stage: test
+ script:
+ - 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
+
+fake-deploy-beta:
+ stage: deploy
+ script:
+ - echo "Hello World!"
+ only:
+ - beta
+
+fake-deploy-live:
+ stage: deploy
script:
- - 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
\ No newline at end of file
+ - echo "Hello World!"
+ only:
+ - sucs-site
\ No newline at end of file
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/377fe00e393dd8a0c44a60170af2b8d02d52d7c3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20151109/52864d85/attachment.html>
More information about the Devel
mailing list