A resource for discovering a new installed MediaWiki version of a MediaWiki wiki.
This resource uses the MediaWiki API to discover new versions and only takes the git-branch
property of the siteinfo
query metadata into account.
This property can be a git SHA1 checksum or a name or a tag, depending on what the actual wiki that is discovered uses to deploy MediaWiki.
mediawikUrl
: The URL of the MediaWiki wiki to track versions of. E.g.https://de.wikipedia.org
With the following resource configuration:
resources:
- name: mediawiki-version
type: mediawiki-version-resource
source:
mediawikiUrl: https://de.wikipedia.org
Detects new versions by reading git-branch
value of the tracked MediaWiki wiki using the public API.
Provides the version to the build as a git-branch
file in the destination.
Does not do anything.
The tests have been embedded with the Dockerfile
; ensuring that the testing environment is consistent across any docker
enabled platform.
When the docker image builds, the test are run inside the docker container, on failure they will stop the build.
Run the tests with the following command:
docker build .
Alternatively the tests can be run with npm:
npm test
Please make all pull requests to the master
branch and ensure tests pass locally.