diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..959972a --- /dev/null +++ b/.codecov.yml @@ -0,0 +1 @@ +comment: false \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a0159d4 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/tests/testthat/test-metis.tidy.R b/tests/testthat/test-metis.tidy.R index 08a07f2..3193d77 100644 --- a/tests/testthat/test-metis.tidy.R +++ b/tests/testthat/test-metis.tidy.R @@ -8,8 +8,32 @@ library(metis) library(dbplyr) library(dplyr) +drv <- metis::Athena() + +skip_on_cran() + +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 + +} + metis::dbConnect( - metis::Athena(), + drv, Schema = "sampledb", AwsCredentialsProviderClass = "com.simba.athena.amazonaws.auth.PropertiesFileCredentialsProvider", AwsCredentialsProviderArguments = path.expand("~/.aws/athenaCredentials.props")