language: java
services: PostgreSQL

before_install:
  - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
  - chmod 755 ./travis-tool.sh
  - ./travis-tool.sh bootstrap
  - curl -OL http://jdbc.postgresql.org/download/postgresql-9.3-1101.jdbc41.jar
install:
  - sudo R CMD javareconf
  - ./travis-tool.sh install_deps

before_script:
- psql -c 'create database lahman;' -U postgres
- psql -c 'create database lahman_jdbc;' -U postgres
- psql -c 'create database hflights;' -U postgres
- psql -c 'create database test;' -U postgres
- psql -c 'create database test_jdbc;' -U postgres
# Install dplyr package then cache sqlite and postgres version of Lahman
- R CMD INSTALL .
- ls
- Rscript -e "library(dplyrJDBC);lahman_JDBC('postgresql-9.3.1101.jdbc41.jar')"
#- Rscript -e "library(dplyr); hflights_postgres(); hflights_sqlite()"
script: ./travis-tool.sh run_tests

after_failure:
  - ./travis-tool.sh dump_logs

notifications:
  email:
    on_success: change
    on_failure: change

language: java
services: PostgreSQL

before_install:
  - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
  - chmod 755 ./travis-tool.sh
  - ./travis-tool.sh bootstrap
  - curl -OL http://jdbc.postgresql.org/download/postgresql-9.3-1101.jdbc41.jar
install:
  - sudo R CMD javareconf
  - ./travis-tool.sh install_deps

before_script:
- psql -c 'create database lahman;' -U postgres
- psql -c 'create database lahman_jdbc;' -U postgres
- psql -c 'create database hflights;' -U postgres
- psql -c 'create database test;' -U postgres
- psql -c 'create database test_jdbc;' -U postgres
# Install dplyr package then cache sqlite and postgres version of Lahman
- R CMD INSTALL .
- ls
- Rscript -e "library(dplyrJDBC);lahman_JDBC('postgresql-9.3-1101.jdbc41.jar')"
#- Rscript -e "library(dplyr); hflights_postgres(); hflights_sqlite()"
script: ./travis-tool.sh run_tests

after_failure:
  - ./travis-tool.sh dump_logs

notifications:
  email:
    on_success: change
    on_failure: change

Fix filename of postgres driver
Fix filename of postgres driver
