Commit 377fe00e authored by Imran Hussain's avatar Imran Hussain
Browse files

Rewrite the gitlabci file.

parent 811d3956
Loading
Loading
Loading
Loading
Loading
+38 −9
Original line number Diff line number Diff line
before_script:
# specify what docker image
# go with the default image for now and mangle it
#image: ruby:2.1

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

syntax:
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:
   - echo "Hello World!"
  only:
   - sucs-site
 No newline at end of file