chore(ci): Updated tests

parent 1a5ff49f
Pipeline #178 failed with stages
in 12 minutes and 45 seconds
......@@ -11,18 +11,77 @@ cache:
- bundle/vendor/
- binaries/
codeclimate:
# Run our tests
test:unit_7.1.4:
stage: test
image: docker:latest
variables:
DOCKER_DRIVER: overlay
services:
- docker:dind
before_script:
- sh ./dev/build_dev_env.sh
- sh ./dev/build_dev_env_phpunit.sh
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
script:
- docker pull codeclimate/codeclimate
- docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f json > codeclimate.json
artifacts:
paths: [codeclimate.json]
- php ./binaries/phpunit.phar -c phpunit.xml
test:unit_7.0.18:
stage: test
image: php:7.0.18
before_script:
- sh ./dev/build_dev_env.sh
- sh ./dev/build_dev_env_phpunit.sh
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
script:
- php ./binaries/phpunit.phar -c phpunit.xml
# Run our tests
test:docblock:
stage: test
before_script:
- sh ./dev/build_dev_env.sh
- sh ./dev/build_dev_env_docblock.sh
script:
- ./binaries/php-docblock-checker-1.3.4/phpdoccheck -d ./lib --no-interaction
# Run our tests
test:lint:
stage: test
before_script:
- sh ./dev/build_dev_env.sh
script:
- ./vendor/bin/parallel-lint --exclude library --exclude vendor --exclude binaries/php-docblock-checker-1.3.4 --exclude binaries/phpspec --blame -e php .
only:
- branches
except:
- master
# Run our tests
test:phpcs:
stage: test
before_script:
- sh ./dev/build_dev_env.sh
script:
- bash ./dev/phpcs_cbf.sh
only:
- develop
# Run our tests
test:phploc:
stage: test
before_script:
- sh ./dev/build_dev_env.sh
script:
- ./binaries/php-docblock-checker-1.3.4/vendor/bin/phploc lib
only:
- develop
- master
# Run our tests
test:dependancies:
stage: test
before_script:
- sh ./dev/build_dev_env.sh
script:
- php ./dev/dependCheck.php
only:
- develop
deploy_review:
stage: stage
......
#!/usr/bin/env sh
WORKINGDIR=`pwd`
echo "# Working in $WORKINGDIR"
if [ ! -d "php-docblock-checker-1.3.4" ]; then
echo "### Downloading php-docblock-checker"
cd "$WORKINGDIR/binaries"
wget https://github.com/Block8/php-docblock-checker/archive/1.3.4.zip -O "$WORKINGDIR/binaries/1.3.4.zip" >/dev/null 2>&1
unzip "$WORKINGDIR/binaries/1.3.4.zip" >/dev/null 2>&1
rm "$WORKINGDIR/binaries/1.3.4.zip"
cd "$WORKINGDIR/binaries/php-docblock-checker-1.3.4"
php "$WORKINGDIR/binaries/composer.phar" install >/dev/null 2>&1
cd "$WORKINGDIR/"
fi
#!/usr/bin/env sh
WORKINGDIR=`pwd`
echo "# Working in $WORKINGDIR"
if [ ! -f "$WORKINGDIR/binaries/phpunit.phar" ]; then
echo "### Downloading phpunit"
cd "$WORKINGDIR/binaries"
wget https://phar.phpunit.de/phpunit.phar >/dev/null 2>&1
cd "$WORKINGDIR/"
fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment