summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/tests/travis/run-tests.sh
blob: aa194b77c7cbdaf78f0ec2562df2f9c3638ba4c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash
set -ex

BASE_PATH=$(pwd)
MW_INSTALL_PATH=$BASE_PATH/../mw

cd $MW_INSTALL_PATH/extensions/SemanticMediaWiki

if [ "$TYPE" == "coverage" ]
then
	composer phpunit -- --coverage-clover $BASE_PATH/tests/coverage.clover
elif [ "$TYPE" == "benchmark" ]
then
	composer phpunit -- --group semantic-mediawiki-benchmark
elif [ "$TYPE" == "debug" ]
then
	composer phpunit -- --debug-tests
else
	composer phpunit
fi