chore(ci): Updated tests

parent 7a87e7af
Pipeline #173 failed with stages
in 3 minutes and 27 seconds
......@@ -11,12 +11,13 @@ cache:
- bundle/vendor/
- binaries/
before_script:
- sh ./dev/build_dev_env.sh
# Run our tests
test:unit_7.1.4:
stage: test
image: php:7.1.4
before_script:
- sh ./dev/build_dev_env.sh
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
script:
- php ./binaries/phpunit.phar -c phpunit.xml
......@@ -24,8 +25,6 @@ test:unit_7.1.4:
test:unit_7.0.18:
stage: test
image: php:7.0.18
before_script:
- sh ./dev/build_dev_env.sh
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
script:
- php ./binaries/phpunit.phar -c phpunit.xml
......@@ -34,8 +33,6 @@ test:unit_7.0.18:
test:docblock:
stage: test
image: php:7.1.4
before_script:
- bash ./dev/build_dev_env.sh
script:
- ./binaries/php-docblock-checker-1.3.4/phpdoccheck -d ./lib --no-interaction
......@@ -43,8 +40,6 @@ test:docblock:
test:lint:
stage: test
image: php:7.1.4
before_script:
- bash ./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:
......@@ -56,8 +51,6 @@ test:lint:
test:phpcs:
stage: test
image: php:7.1.4
before_script:
- bash ./dev/build_dev_env.sh
script:
- bash ./dev/phpcs_cbf.sh
only:
......@@ -67,8 +60,6 @@ test:phpcs:
test:phploc:
stage: test
image: php:7.1.4
before_script:
- bash ./dev/build_dev_env.sh
script:
- ./binaries/php-docblock-checker-1.3.4/vendor/bin/phploc lib
only:
......@@ -79,8 +70,6 @@ test:phploc:
test:dependancies:
stage: test
image: php:7.1.4
before_script:
- bash ./dev/build_dev_env.sh
script:
- php ./dev/dependCheck.php
only:
......
......@@ -5,12 +5,12 @@ WORKINGDIR=`pwd`
echo "# Working in $WORKINGDIR"
echo "## Updated System Image"
apt-get update -yqq
apt-get install -yqq git
apt-get install -yqq zip
apt-get install -yqq unzip
apt-get install -yqq wget
apt-get install -yqq php-xdebug
apt-get update -yqq >/dev/null 2>&1
apt-get install -yqq git >/dev/null 2>&1
apt-get install -yqq zip >/dev/null 2>&1
apt-get install -yqq unzip >/dev/null 2>&1
apt-get install -yqq wget >/dev/null 2>&1
apt-get install -yqq php-xdebug >/dev/null 2>&1
if [ ! -d "binaries" ]; then
echo "## Creating Binaries Folder"
......@@ -31,9 +31,10 @@ php "$WORKINGDIR/binaries/composer.phar" install --dev >/dev/null 2>&1
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"
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"
ls -al "$WORKINGDIR/binaries"
cd "$WORKINGDIR/php-docblock-checker-1.3.4"
php "$WORKINGDIR/binaries/composer.phar" install #>/dev/null 2>&1
cd "$WORKINGDIR/"
......
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