diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..6c091458174f494ff5d6b8423cbf94c544c2f924 --- /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