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

Imran Hussain imranh at sucs.org
Mon Nov 9 11:10:49 GMT 2015


Imran Hussain pushed to branch sucs-site 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

- - - - -
6cf99d62 by Imran Hussain at 2015-11-09T11:10:13Z
Merge branch 'beta' into sucs-site

- - - - -


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/ed2617c1a6b514b82d4e8d8ba440e1c91b9a317c...6cf99d6266151c3d0c115fb45b7565f2656827f0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20151109/8dcb2a5c/attachment.html>


More information about the Devel mailing list