Commit 5fbb6a00 authored by Pietro Saccardi's avatar Pietro Saccardi

Testing auto-packaging with gitlab ci

parent 456259fd
Pipeline #438 passed with stage
in 55 seconds
image: php
stages:
- test
- release
before_script:
- apt-get update -yqq
- apt-get install -yqq git curl ca-certificates libxml2-dev
- docker-php-ext-install mbstring xml
- curl https://phar.phpunit.de/phpunit-7.5.1.phar -L -o phpunit.phar
- chmod +x phpunit.phar
- mv phpunit.phar /usr/local/bin/phpunit
- git clone git://github.com/splitbrain/dokuwiki.git
- pushd dokuwiki/lib/plugins
- ln -s $CI_PROJECT_DIR ifauthex
- popd
unit_test:
stage: test
image: php
before_script:
- apt-get update -yqq
- apt-get install -yqq git curl ca-certificates libxml2-dev
- docker-php-ext-install mbstring xml
- curl https://phar.phpunit.de/phpunit-7.5.1.phar -L -o phpunit.phar
- chmod +x phpunit.phar
- mv phpunit.phar /usr/local/bin/phpunit
- git clone git://github.com/splitbrain/dokuwiki.git
- pushd dokuwiki/lib/plugins
- ln -s $CI_PROJECT_DIR $PLUGIN_NAME
- popd
script:
- cd dokuwiki/_test
- phpunit --stderr --group plugin_$PLUGIN_NAME
except:
- test_branch
variables:
PLUGIN_NAME: ifauthex
test:
package:
image: alpine
stage: release
# only:
# - tags
before_script:
- apk --update --no-cache add zip
script:
- cd dokuwiki/_test
- phpunit --stderr --group plugin_ifauthex
\ No newline at end of file
- zip -r $PLUGIN_NAME.zip *
artifacts:
paths:
- "$PLUGIN_NAME.zip"
variables:
GIT_STRATEGY: clone
PLUGIN_NAME: ifauthex
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