~hrbrmstr/metis

47fe699d3eb04726c6e346e098569d2d51e608e3 — boB Rudis 1 year, 5 months ago 299bd2f
pre-travis check
6 files changed, 51 insertions(+), 8 deletions(-)

A .codecov.yml
A .travis.yml
M DESCRIPTION
M README.Rmd
M README.md
M tests/testthat/test-metis.R
A .codecov.yml => .codecov.yml +1 -0
@@ 0,0 1,1 @@
comment: false
\ No newline at end of file

A .travis.yml => .travis.yml +22 -0
@@ 0,0 1,22 @@
language: r

warnings_are_errors: true

cache: packages

sudo: required

jdk:
  - oraclejdk8

addons:
  apt:
    packages:
      - oracle-java8-set-default

after_success:
  - Rscript -e 'covr::codecov()'

r:
 - oldrel
 - release

M DESCRIPTION => DESCRIPTION +1 -1
@@ 6,7 6,7 @@ Date: 2019-02-14
Authors@R: c(
    person("Bob", "Rudis", email = "bob@rud.is", role = c("aut", "cre"),
           comment = c(ORCID = "0000-0001-5670-2640")),
    person("Derek", "Abdine", comment = "Authentication driver update"),
    person("Derek", "Abdine", role = "ctb", comment = "Authentication driver update"),
    person("Zachary", "Kurtz", email = "zdkurtz@gmail.com", role = "ctb")
  )
Maintainer: Bob Rudis <bob@rud.is>

M README.Rmd => README.Rmd +4 -0
@@ 18,6 18,10 @@ Sys.setenv(
options(width=120)
```

[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/metis.svg?branch=master)](https://travis-ci.org/hrbrmstr/metis) 
[![Coverage Status](https://codecov.io/gh/hrbrmstr/metis/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/metis
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/metis)](https://cran.r-project.org/package=metis)

# metis

Access and Query Amazon Athena via DBI/JDBC

M README.md => README.md +4 -0
@@ 1,4 1,8 @@

[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/metis.svg?branch=master)](https://travis-ci.org/hrbrmstr/metis) 
[![Coverage Status](https://codecov.io/gh/hrbrmstr/metis/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/metis
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/metis)](https://cran.r-project.org/package=metis)

# metis

Access and Query Amazon Athena via DBI/JDBC

M tests/testthat/test-metis.R => tests/testthat/test-metis.R +19 -7
@@ 6,13 6,25 @@ drv <- metis::Athena()

expect_is(drv, "AthenaDriver")

metis::dbConnect(
  drv = drv,
  Schema = "sampledb",
  AwsCredentialsProviderClass = "com.simba.athena.amazonaws.auth.PropertiesFileCredentialsProvider",
  AwsCredentialsProviderArguments = path.expand("~/.aws/athenaCredentials.props"),
  S3OutputLocation = "s3://aws-athena-query-results-569593279821-us-east-1",
) -> con
if (identical(Sys.getenv("TRAVIS"), "true")) {

  metis::dbConnect(
    drv = drv,
    Schema = "sampledb",
    S3OutputLocation = "s3://aws-athena-query-results-569593279821-us-east-1",
  ) -> con

} else {

  metis::dbConnect(
    drv = drv,
    Schema = "sampledb",
    AwsCredentialsProviderClass = "com.simba.athena.amazonaws.auth.PropertiesFileCredentialsProvider",
    AwsCredentialsProviderArguments = path.expand("~/.aws/athenaCredentials.props"),
    S3OutputLocation = "s3://aws-athena-query-results-569593279821-us-east-1",
  ) -> con

}

expect_is(con, "AthenaConnection")