Loading .gitlab-ci.yml +14 −11 Original line number Diff line number Diff line Loading @@ -6,26 +6,29 @@ stages: - test - deploy # make sure php is in the image before_script: - apt-get clean - apt-get update - apt-get install -y php5-cli npm - ln -s /usr/bin/nodejs /usr/bin/node - npm install -g jshint #before_script: php-syntax-check: stage: test script: - apt-get clean - apt-get update - apt-get install -y php5-cli - 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 - 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: - find htdocs/js | xargs -n 1 jshint --verbose - 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 | xargs -n 1 jshint --verbose fake-deploy-beta: stage: deploy Loading Loading
.gitlab-ci.yml +14 −11 Original line number Diff line number Diff line Loading @@ -6,26 +6,29 @@ stages: - test - deploy # make sure php is in the image before_script: - apt-get clean - apt-get update - apt-get install -y php5-cli npm - ln -s /usr/bin/nodejs /usr/bin/node - npm install -g jshint #before_script: php-syntax-check: stage: test script: - apt-get clean - apt-get update - apt-get install -y php5-cli - 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 - 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: - find htdocs/js | xargs -n 1 jshint --verbose - 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 | xargs -n 1 jshint --verbose fake-deploy-beta: stage: deploy Loading