[SUCS Devel] [Git][sucssite/sso][master] 2 commits: Add CI/CD

Imran Hussain (@imranh) imranh at sucs.org
Wed Dec 22 19:30:40 GMT 2021



Imran Hussain pushed to branch master at sucssite / sso


Commits:
c3fae35d by Imran Hussain at 2021-12-22T19:28:11+00:00
Add CI/CD
- - - - -
fd22d2af by Imran Hussain at 2021-12-22T19:30:35+00:00
Merge branch 'cicd' into 'master'

Add CI/CD

See merge request sucssite/sso!2
- - - - -


1 changed file:

- + .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -0,0 +1,32 @@
+# specify what docker image
+# go with the default image for now and mangle it
+#image: debian:jessie
+
+stages:
+  - test
+  - deploy
+
+
+#before_script:
+
+php-syntax-check:
+  stage: test
+  script:
+   - apt-get clean
+   - apt-get update
+   - apt-get install -y php-cli
+   - php -l lib/db.php
+   - php -l public/index.php
+   - php -l public/pull.php
+   - find public/api/v1 -name *.php | xargs -n 1 php -l
+
+
+deploy-live:
+  stage: deploy
+  script:
+   - apt update
+   - apt install -y curl
+   - curl https://sso.sucs.org/pull.php
+  only:
+   - master
+  environment: live



View it on GitLab: https://projects.sucs.org/sucssite/sso/-/compare/f11ef777e3a670def4b55678f87d3bc2bd80a5a2...fd22d2af810990ba871eaf389e8d9d54cd6c0435

-- 
View it on GitLab: https://projects.sucs.org/sucssite/sso/-/compare/f11ef777e3a670def4b55678f87d3bc2bd80a5a2...fd22d2af810990ba871eaf389e8d9d54cd6c0435
You're receiving this email because of your account on projects.sucs.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20211222/dbca72ca/attachment-0001.html>


More information about the Devel mailing list