Loading .gitlab-ci.yml +38 −15 Original line number Diff line number Diff line image: php stages: - test - release unit_test: stage: test image: php before_script: - apt-get update -yqq - apt-get install -yqq git curl ca-certificates libxml2-dev Loading @@ -9,10 +14,28 @@ before_script: - 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 - ln -s $CI_PROJECT_DIR $PLUGIN_NAME - popd test: script: - cd dokuwiki/_test - phpunit --stderr --group plugin_ifauthex No newline at end of file - phpunit --stderr --group plugin_$PLUGIN_NAME except: - test_branch variables: PLUGIN_NAME: ifauthex package: image: alpine stage: release # only: # - tags before_script: - apk --update --no-cache add zip script: - zip -r $PLUGIN_NAME.zip * artifacts: paths: - "$PLUGIN_NAME.zip" variables: GIT_STRATEGY: clone PLUGIN_NAME: ifauthex Loading
.gitlab-ci.yml +38 −15 Original line number Diff line number Diff line image: php stages: - test - release unit_test: stage: test image: php before_script: - apt-get update -yqq - apt-get install -yqq git curl ca-certificates libxml2-dev Loading @@ -9,10 +14,28 @@ before_script: - 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 - ln -s $CI_PROJECT_DIR $PLUGIN_NAME - popd test: script: - cd dokuwiki/_test - phpunit --stderr --group plugin_ifauthex No newline at end of file - phpunit --stderr --group plugin_$PLUGIN_NAME except: - test_branch variables: PLUGIN_NAME: ifauthex package: image: alpine stage: release # only: # - tags before_script: - apk --update --no-cache add zip script: - zip -r $PLUGIN_NAME.zip * artifacts: paths: - "$PLUGIN_NAME.zip" variables: GIT_STRATEGY: clone PLUGIN_NAME: ifauthex