More CI changes
This commit is contained in:
parent
560197eebe
commit
3b0c8ad3a6
@ -1,6 +1,7 @@
|
|||||||
stages:
|
stages:
|
||||||
|
- validate
|
||||||
- test
|
- test
|
||||||
- deploy
|
- package
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- bash ci/docker_install.sh > /dev/null
|
- bash ci/docker_install.sh > /dev/null
|
||||||
@ -8,34 +9,61 @@ before_script:
|
|||||||
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||||
- php composer-setup.php
|
- php composer-setup.php
|
||||||
- php -r "unlink('composer-setup.php');"
|
- php -r "unlink('composer-setup.php');"
|
||||||
- php composer.phar update
|
|
||||||
|
validate:7.1:
|
||||||
|
image: php:7.1
|
||||||
|
stage: validate
|
||||||
|
script:
|
||||||
|
- php composer.phar update --no-dev
|
||||||
|
- php composer.phar install --no-dev
|
||||||
|
- bash ci/php_lint.sh ./
|
||||||
|
|
||||||
|
validate:7.0:
|
||||||
|
image: php:7.0
|
||||||
|
stage: validate
|
||||||
|
script:
|
||||||
|
- php composer.phar update --no-dev
|
||||||
|
- php composer.phar install --no-dev
|
||||||
|
- bash ci/php_lint.sh ./
|
||||||
|
|
||||||
|
validate:5.6:
|
||||||
|
image: php:5.6
|
||||||
|
stage: validate
|
||||||
|
script:
|
||||||
|
- php composer.phar update --no-dev
|
||||||
|
- php composer.phar install --no-dev
|
||||||
|
- bash ci/php_lint.sh ./
|
||||||
|
|
||||||
|
validate:5.5:
|
||||||
|
image: php:5.5
|
||||||
|
stage: validate
|
||||||
|
script:
|
||||||
|
- php composer.phar update --no-dev
|
||||||
|
- php composer.phar install --no-dev
|
||||||
|
- bash ci/php_lint.sh ./
|
||||||
|
|
||||||
test:7.1:
|
test:7.1:
|
||||||
image: php:7.1
|
image: php:7.1
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- composer install
|
- php composer.phar update
|
||||||
|
- php composer.phar install
|
||||||
- cd Tests
|
- cd Tests
|
||||||
- phpunit
|
- phpunit
|
||||||
- cd ../../
|
|
||||||
- bash ci/php_lint.sh ./
|
|
||||||
|
|
||||||
test:7.0:
|
test:7.0:
|
||||||
image: php:7.0
|
image: php:7.0
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- bash ci/php_lint.sh ./
|
- php composer.phar update
|
||||||
|
- php composer.phar install
|
||||||
|
- cd Tests
|
||||||
|
- phpunit
|
||||||
|
|
||||||
test:5.5:
|
package:
|
||||||
image: php:5.5
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- bash ci/php_lint.sh ./
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
image: tetraweb/php
|
image: tetraweb/php
|
||||||
when: manual
|
when: manual
|
||||||
stage: deploy
|
stage: package
|
||||||
script:
|
script:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install zip unzip
|
- apt-get install zip unzip
|
||||||
|
@ -12,7 +12,7 @@ while test $# -gt 0; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in `find $current -type f -not -path "*vendor/*" -name "*.php"` ; do
|
for file in `find $current -type f -not -path "*vendor/*" -not -path "*api/*" -name "*.php"` ; do
|
||||||
RESULTS=`php -l $file`
|
RESULTS=`php -l $file`
|
||||||
echo $RESULTS
|
echo $RESULTS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user