[SUCS Devel] [Git][sucssite/sucs-site][beta] 6 commits: Add CI to sucs-site project.

Imran Hussain imranh at sucs.org
Mon Nov 9 11:02:42 GMT 2015


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


Commits:
a5e75252 by Imran Hussain at 2015-11-08T00:58:07Z
Add CI to sucs-site project.

Currently only checks to see if the php is valid.

- - - - -
394b18d6 by Imran Hussain at 2015-11-08T01:03:21Z
Add the right file...
- - - - -
811d3956 by Imran Hussain at 2015-11-08T18:00:56Z
Add build status badge to readme
- - - - -
377fe00e by Imran Hussain at 2015-11-09T10:27:27Z
Rewrite the gitlabci file.

- - - - -
1e37830a by Imran Hussain at 2015-11-09T10:35:18Z
Fix ci

- - - - -
e4f93ace by Imran Hussain at 2015-11-09T11:02:25Z
Merge branch 'master' into beta

- - - - -


2 changed files:

- + .gitlab-ci.yml
- README.md


Changes:

=====================================
.gitlab-ci.yml
=====================================
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,35 @@
+# specify what docker image
+# go with the default image for now and mangle it
+#image: ruby:2.1
+
+stages:
+  - test
+  - deploy
+
+# make sure php is in the image
+before_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:
+   - echo "Hello World!"
+  only:
+   - sucs-site
\ No newline at end of file


=====================================
README.md
=====================================
--- a/README.md
+++ b/README.md
@@ -1,4 +1,6 @@
 # SUCS Site
+[![build status](https://projects.sucs.org/ci/projects/2/status.png?ref=master)](https://projects.sucs.org/ci/projects/2?ref=master)
+
 ---
 ## Project Structure
 <br>



View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/compare/fc8a4561536217b9c442a036b550ac197bc22b1f...e4f93acea862a8f50ed5227c9b001938d1ddcf50
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20151109/21fc018a/attachment-0001.html>


More information about the Devel mailing list