Browse Source

pre-travis check

master
boB Rudis 4 years ago
parent
commit
89f83fdf80
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 1
      .codecov.yml
  2. 22
      .travis.yml
  3. 26
      tests/testthat/test-metis.tidy.R

1
.codecov.yml

@ -0,0 +1 @@
comment: false

22
.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

26
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")

Loading…
Cancel
Save