Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sucssite
sso
Commits
fd22d2af
Commit
fd22d2af
authored
Dec 22, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
fd22d2af
# 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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment