Skip to content
Snippets Groups Projects
.gitlab-ci.yml 886 B
Newer Older
# specify what docker image
# go with the default image for now and mangle it
#image: ruby:2.1
stages:
  - test
  - deploy

Imran Hussain's avatar
Imran Hussain committed

#before_script:

php-syntax-check:
  stage: test
  script:
Imran Hussain's avatar
Imran Hussain committed
   - apt-get clean
   - apt-get update
   - apt-get install -y php5-cli        
   - php -l htdocs/index.php
Imran Hussain's avatar
Imran Hussain committed
   - find components -name *.php | xargs -n 1 php -l
   - find plugins -name *.php | xargs -n 1 php -l
   - find lib -name *.php | xargs -n 1 php -l

js-syntax-check:
  stage: test
  script:
Imran Hussain's avatar
Imran Hussain committed
   - apt-get clean
   - apt-get update
   - apt-get install -y npm
   - ln -s /usr/bin/nodejs /usr/bin/node
   - npm install -g jshint        
   - find htdocs/js/ -name *.js ! -name jquery* | xargs -n 1 jshint --verbose
fake-deploy-beta:
  stage: deploy
  script:
   - echo "Hello World!"
  only:
   - beta

fake-deploy-live:
  stage: deploy
  script:
   - echo "Hello World!"
  only:
   - sucs-site