GithubHelp home page GithubHelp logo

dokuwiki-travis's Introduction

Travis CI testing for DokuWiki plugins

This repository contains a script that can be used in Travis CI or Gitlab-CI to setup the DokuWiki environment to test a single plugin.

Setup

Use it like this in .travis.yml:

language: php
php:
  - "7.4"
  - "7.3"
  - "7.2"
  - "7.1"
  - "7.0"
  - "5.6"
env:
  - DOKUWIKI=master
  - DOKUWIKI=stable
  - DOKUWIKI=old-stable
before_install: wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh
install: sh travis.sh
script: cd _test && ./phpunit.phar --stderr --group plugin_something

As you can see, you can specify the PHP versions and DokuWiki releases your plugin should be tested against.

Plugins with dependencies

If your tests require additional plugins to be installed, provide a requirements.txt file in your plugin's root directory. It should contain arguments to the git clone command, eg. the source repository and the target directory. The latter needs to be a full path in the DokuWiki hierarchy.

Here's an example requirements.txt file:

# additional requirements for this plugin:
https://github.com/cosmocode/sqlite.git                         lib/plugins/sqlite
https://github.com/splitbrain/dokuwiki-plugin-translation.git   lib/plugins/translation

If your plugin needs any additional setup before testing you need to provide your own script to be run in the before_script step of .travis.yml. Refer to the travis docs on how to do that.

More info

More info on Unit Testing in DokuWiki is available at https://www.dokuwiki.org/devel:unittesting

dokuwiki-travis's People

Contributors

glensc avatar micgro42 avatar splitbrain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dokuwiki-travis's Issues

add remote branch support

can you add support for dokuwiki repos others than splitbrain/dokuwiki ?

for example something like:

  • DOKUWIKI=splitbrain master
  • DOKUWIKI=lisps TestRequest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.