Skip to content

Commit

Permalink
Have Travis run the repo tests
Browse files Browse the repository at this point in the history
Change-Id: Ibce2946f045fa4321d2b634ff33a9b52dd3cac85
  • Loading branch information
JeroenDeDauw committed Jun 14, 2013
1 parent f23cf0c commit 60f738b
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
!.jshintignore

!.travis.yml
!.travis.sh

composer.phar
composer.lock
Expand Down
29 changes: 29 additions & 0 deletions .travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#! /bin/bash

set -x

cd ..

git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git phase3 --depth 1

cd phase3

mysql -e 'create database its_a_mw;'
php maintenance/install.php --dbtype $DBTYPE --dbuser root --dbname its_a_mw --dbpath $(pwd) --pass nyan TravisWiki admin

cd extensions
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Diff.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/DataValues.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Ask.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/WikibaseDataModel.git
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Wikibase.git

cd ..
echo "define( 'WB_EXPERIMENTAL_FEATURES', true );" >> LocalSettings.php
echo 'require_once( __DIR__ . "/extensions/Wikibase/repo/Wikibase.php" );' >> LocalSettings.php
echo 'require_once( __DIR__ . "/extensions/Wikibase/repo/ExampleSettings.php" );' >> LocalSettings.php

php /maintenance/update.php --quick

cd extensions/Wikibase
phpunit
34 changes: 33 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,36 @@ php:
- 5.4
- 5.5

script: phpunit --testsuite=WikibaseDatabaseStandalone
env:
- DBTYPE=mysql
- DBTYPE=sqlite
- DBTYPE=postgres

matrix:
allow_failures:
- env: DBTYPE=postgres
exclude:
- php: 5.4
env: DBTYPE=mysql
- php: 5.4
env: DBTYPE=postgres
- php: 5.5
env: DBTYPE=postgres


before_script:
- bash .travis.sh

script: true

notifications:
email:
recipients:
- jeroendedauw@gmail.com
on_success: change
on_failure: always
irc:
channels:
- "chat.freenode.net#wikimedia-wikidata"
on_success: change
on_failure: always

0 comments on commit 60f738b

Please sign in to comment.