Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit e7d5114

Browse files
author
Jamie Snape
committed
Add Travis CI testing
1 parent d8c23ed commit e7d5114

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
8+
before_script:
9+
- cp tests/travis/mysql.ini tests/configs/mysql.ini && cp tests/travis/pgsql.ini tests/configs/pgsql.ini
10+
- mysql -u root -e 'create database midas_test;'
11+
- psql -U postgres -c 'create database midas_test;'
12+
13+
script:
14+
- mkdir _test && cd _test
15+
- cmake ..
16+
- ctest -j2 -V .

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Midas Platform
55

66
_Version 3.x_
77

8+
[![Build Status](https://travis-ci.org/midasplatform/Midas.png?branch=master)](https://travis-ci.org/midasplatform/Midas)
9+
810
Midas Platform is an open-source toolkit that enables the rapid creation of
911
tailored, web-enabled data storage. Designed to meet the needs of advanced
1012
data-centric computing, Midas Platform addresses the growing challenge of large

tests/travis/mysql.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[testing]
2+
database.type = pdo
3+
database.adapter = PDO_MYSQL
4+
database.params.host = 127.0.0.1
5+
database.params.port = 3306
6+
database.params.username = root
7+
database.params.password =
8+
database.params.dbname = midas_test

tests/travis/pgsql.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[testing]
2+
database.type = pdo
3+
database.adapter = PDO_PGSQL
4+
database.params.host = 127.0.0.1
5+
database.params.port = 5432
6+
database.params.username = postgres
7+
database.params.password =
8+
database.params.dbname = midas_test

0 commit comments

Comments
 (0)