Skip to content

Commit

Permalink
add travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
phcorp committed Jan 27, 2017
1 parent f331036 commit 624b90f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: php
services:
- mysql
php:
- '5.6'
- '7.0'
- '7.1'
before_install:
- sudo apt-get update
- sudo apt-get install graphviz
- mysql -e 'CREATE DATABASE doctrineviz;'
install:
- mv env/config/parameters.yml.dist env/config/parameters.yml
- composer install
- php env/console doctrine:schema:create
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# doctrineviz

[![Build Status](https://travis-ci.org/janalis/doctrineviz.svg?branch=master)](https://travis-ci.org/janalis/doctrineviz)

Render a graphical representation of a Doctrine2 mapped database.

## Example
Expand Down
8 changes: 4 additions & 4 deletions env/config/parameters.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production.
# http://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
parameters:
database_host: mariadb
database_host: 127.0.0.1
database_port: 3306
database_name: devdb
database_user: devdb
database_password: devdb
database_name: doctrineviz
database_user: root
database_password: ~
# You should uncomment this if you want use pdo_sqlite
# database_path: "%kernel.root_dir%/data.db3"

Expand Down

0 comments on commit 624b90f

Please sign in to comment.