language: groovy
jdk:
  - openjdk7
  - oraclejdk7

script:
  - ./grailsw refresh-dependencies --non-interactive
  - ./grailsw test-app -coverage -xml

notifications:
  email:
    recipients:
      - lopez.ivan@gmail.com
      - alonso.javier.torres@gmail.com

    on_success: change
    on_failure: change

language: groovy
jdk:
  - openjdk7
  - oraclejdk7

addons:
  postgresql: "9.3"

before_script:
  - psql -d template1 -c 'create extension hstore;' -U postgres
  - psql -c 'create database pg_extensions_test;' -U postgres
  - psql -c "create user pg_extensions with password 'pg_extensions';" -U postgres
  - psql -c "grant all privileges on database pg_extensions_test to pg_extensions;" -U postgres

script:
  - ./grailsw refresh-dependencies --non-interactive
  - ./grailsw test-app -coverage -xml

notifications:
  email:
    recipients:
      - lopez.ivan@gmail.com
      - alonso.javier.torres@gmail.com

    on_success: change
    on_failure: change

Add Postgresql database to Travis CI
Add Postgresql database to Travis CI
