Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 86a746c

Browse files
committed
enables travis tests for all testsuites
1 parent d592403 commit 86a746c

File tree

4 files changed

+77
-4
lines changed

4 files changed

+77
-4
lines changed

.travis.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 5.6
6+
- 7.0
7+
- 7.1
8+
9+
env:
10+
- VIRTUOSO=6.1.7
11+
- VIRTUOSO=7.1.0
12+
- VIRTUOSO=7.2.4.2
13+
14+
matrix:
15+
fast_finish: true
16+
include:
17+
- php: 5.4
18+
env: VIRTUOSO=6.1.4
19+
- php: 5.4
20+
env: VIRTUOSO=6.1.6
21+
- php: 5.4
22+
env: VIRTUOSO=7.2.0
23+
allow_failures:
24+
- php: 7.0
25+
- php: 7.1
26+
27+
cache:
28+
directories:
29+
- $HOME/.composer/cache
30+
- virtuoso-opensource
31+
32+
sudo: true
33+
34+
services:
35+
- mysql
36+
37+
before_install:
38+
- bash ./application/scripts/travis/install-extensions.sh
39+
- bash ./application/scripts/travis/install-services.sh
40+
- sudo apt-get -qq update
41+
- sudo apt-get install -y raptor2-utils
42+
- phpenv config-rm xdebug.ini
43+
- mysql -e 'CREATE DATABASE ontowiki_TEST;'
44+
45+
install:
46+
- travis_retry composer install --no-interaction
47+
48+
before_script:
49+
- cp ./application/tests/config.ini.dist.travis ./application/tests/config.ini
50+
- make directories
51+
52+
script:
53+
- vendor/bin/phpunit --testsuite "OntoWiki Unit Tests"
54+
- EF_STORE_ADAPTER=zenddb vendor/bin/phpunit --testsuite "OntoWiki ZendDB Integration Tests"
55+
- EF_STORE_ADAPTER=virtuoso vendor/bin/phpunit --testsuite "OntoWiki Virtuoso Integration Tests"
56+
- vendor/bin/phpunit --testsuite "OntoWiki Extensions Tests"

application/scripts/travis/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
This file and scripts are taken form the SemanticMediaWiki repo and only selected files where copied for running tests with virtuoso.
66
It is taken as of commit 721a63d3a73400300f73e0a088196a6ed0fe5afd from https://github.com/SemanticMediaWiki/SemanticMediaWiki.
7-
The unsupported services are marked with *Endabled* "No".
7+
The unsupported services are marked with *Enabled* "No".
88

99
<table>
1010
<tr>
11-
<th>Endabled</th>
11+
<th>Enabled</th>
1212
<th>Service</th>
1313
<th>Connector</th>
1414
<th>QueryEndPoint</th>

application/scripts/travis/install-services.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ then
174174

175175
sleep 15
176176

177-
sudo /usr/local/virtuoso-opensource/bin/isql-v 1111 dba dba $BASE_PATH/scripts/travis/virtuoso-sparql-permission.sql
177+
sudo /usr/local/virtuoso-opensource/bin/isql-v 1111 dba dba $BASE_PATH/application/scripts/travis/virtuoso-sparql-permission.sql
178178

179179
# configure datasource name for ODBC connection
180-
echo "[VOS]" | sudo tee -a /etc/odbc.ini > /dev/null
180+
echo "[VOS_TEST]" | sudo tee -a /etc/odbc.ini > /dev/null
181181
echo "Driver=/usr/local/virtuoso-opensource/lib/virtodbc.so" | sudo tee -a /etc/odbc.ini > /dev/null
182182
echo "Description=Virtuoso OpenSource Edition" | sudo tee -a /etc/odbc.ini > /dev/null
183183
echo "Address=localhost:1111" | sudo tee -a /etc/odbc.ini > /dev/null
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[private]
2+
3+
;;----------------------------------------------------------------------------;;
4+
;; Database Connection Settings ;;
5+
;;----------------------------------------------------------------------------;;
6+
7+
store.backend = zenddb ; zenddb, virtuoso, multi
8+
9+
store.zenddb.dbname = ontowiki_TEST ; needs to end with _TEST
10+
store.zenddb.username = travis
11+
store.zenddb.password =
12+
store.zenddb.dbtype = mysql ; mysql
13+
store.zenddb.host = localhost ; default is localhost
14+
15+
store.virtuoso.dsn = VOS_TEST ; needs to end with _TEST
16+
store.virtuoso.username = dba
17+
store.virtuoso.password = dba

0 commit comments

Comments
 (0)