Commit fd22d2af authored by Imran Hussain's avatar Imran Hussain
Browse files

Merge branch 'cicd' into 'master'

Add CI/CD

See merge request !2
parents f11ef777 c3fae35d
Pipeline #814 passed with stages
in 1 minute and 46 seconds
# 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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment