chore(ci): Updated tests

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