Skip to content
Snippets Groups Projects
Commit 377fe00e authored by Imran Hussain's avatar Imran Hussain
Browse files

Rewrite the gitlabci file.

parent 811d3956
No related branches found
No related tags found
No related merge requests found
before_script:
- apt-get clean
- apt-get update
- apt-get install -y php5-cli
# specify what docker image
# go with the default image for now and mangle it
#image: ruby:2.1
syntax:
stages:
- prep
- test
- deploy
# we don't need to do anything before each stage
#before_script:
install-php:
stage: prep
script:
- apt-get clean
- apt-get update
- apt-get install -y php5-cli
php-syntax-check:
stage: test
script:
- php -l htdocs/index.php
- find components | xargs -n 1 php -l
- find plugins | xargs -n 1 php -l
- find lib | xargs -n 1 php -l
fake-deploy-beta:
stage: deploy
script:
- echo "Hello World!"
only:
- beta
fake-deploy-live:
stage: deploy
script:
- php -l htdocs/index.php
- find components | xargs -n 1 php -l
- find plugins | xargs -n 1 php -l
- find lib | xargs -n 1 php -l
\ No newline at end of file
- echo "Hello World!"
only:
- sucs-site
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment