From c3fae35db651b0616ec37b82b9146bc490de28bc Mon Sep 17 00:00:00 2001 From: Imran Hussain Date: Wed, 22 Dec 2021 19:28:11 +0000 Subject: [PATCH] Add CI/CD --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..6c09145 --- /dev/null +++ b/.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 -- GitLab