Browse Source

pre-travis check

boB Rudis 9 months ago
parent
commit
47fe699d3e
No known key found for this signature in database
6 changed files with 51 additions and 8 deletions
  1. 1
    0
      .codecov.yml
  2. 22
    0
      .travis.yml
  3. 1
    1
      DESCRIPTION
  4. 4
    0
      README.Rmd
  5. 4
    0
      README.md
  6. 19
    7
      tests/testthat/test-metis.R

+ 1
- 0
.codecov.yml View File

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

+ 22
- 0
.travis.yml View File

@@ -0,0 +1,22 @@
1
+language: r
2
+
3
+warnings_are_errors: true
4
+
5
+cache: packages
6
+
7
+sudo: required
8
+
9
+jdk:
10
+  - oraclejdk8
11
+
12
+addons:
13
+  apt:
14
+    packages:
15
+      - oracle-java8-set-default
16
+
17
+after_success:
18
+  - Rscript -e 'covr::codecov()'
19
+
20
+r:
21
+ - oldrel
22
+ - release

+ 1
- 1
DESCRIPTION View File

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

+ 4
- 0
README.Rmd View File

@@ -18,6 +18,10 @@ Sys.setenv(
18 18
 options(width=120)
19 19
 ```
20 20
 
21
+[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/metis.svg?branch=master)](https://travis-ci.org/hrbrmstr/metis) 
22
+[![Coverage Status](https://codecov.io/gh/hrbrmstr/metis/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/metis
23
+[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/metis)](https://cran.r-project.org/package=metis)
24
+
21 25
 # metis
22 26
 
23 27
 Access and Query Amazon Athena via DBI/JDBC

+ 4
- 0
README.md View File

@@ -1,4 +1,8 @@
1 1
 
2
+[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/metis.svg?branch=master)](https://travis-ci.org/hrbrmstr/metis) 
3
+[![Coverage Status](https://codecov.io/gh/hrbrmstr/metis/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/metis
4
+[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/metis)](https://cran.r-project.org/package=metis)
5
+
2 6
 # metis
3 7
 
4 8
 Access and Query Amazon Athena via DBI/JDBC

+ 19
- 7
tests/testthat/test-metis.R View File

@@ -6,13 +6,25 @@ drv <- metis::Athena()
6 6
 
7 7
 expect_is(drv, "AthenaDriver")
8 8
 
9
-metis::dbConnect(
10
-  drv = drv,
11
-  Schema = "sampledb",
12
-  AwsCredentialsProviderClass = "com.simba.athena.amazonaws.auth.PropertiesFileCredentialsProvider",
13
-  AwsCredentialsProviderArguments = path.expand("~/.aws/athenaCredentials.props"),
14
-  S3OutputLocation = "s3://aws-athena-query-results-569593279821-us-east-1",
15
-) -> con
9
+if (identical(Sys.getenv("TRAVIS"), "true")) {
10
+
11
+  metis::dbConnect(
12
+    drv = drv,
13
+    Schema = "sampledb",
14
+    S3OutputLocation = "s3://aws-athena-query-results-569593279821-us-east-1",
15
+  ) -> con
16
+
17
+} else {
18
+
19
+  metis::dbConnect(
20
+    drv = drv,
21
+    Schema = "sampledb",
22
+    AwsCredentialsProviderClass = "com.simba.athena.amazonaws.auth.PropertiesFileCredentialsProvider",
23
+    AwsCredentialsProviderArguments = path.expand("~/.aws/athenaCredentials.props"),
24
+    S3OutputLocation = "s3://aws-athena-query-results-569593279821-us-east-1",
25
+  ) -> con
26
+
27
+}
16 28
 
17 29
 expect_is(con, "AthenaConnection")
18 30
 

Loading…
Cancel
Save