Skip to content

Commit

Permalink
fix: build R template
Browse files Browse the repository at this point in the history
feat: build simple templates to check that they are buildable
  • Loading branch information
odinuv committed Mar 27, 2018
1 parent 7c56a1a commit 504ce2f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,24 @@ before_script:
- docker build ./templates/php-component --tag=template-php-component
- docker run --rm template-php-component composer ci

# php-simple
- docker build ./templates/php-simple --tag=php-simple

# python-tests
- docker build ./templates/python-tests --tag=template-python-tests
- docker run template-python-tests flake8
- docker run template-python-tests python -m unittest discover

# python-simple
- docker build ./templates/python-simple --tag=python-simple

# r-tests
- docker build ./templates/r-tests --tag=template-r-tests
- docker run -e KBC_DATADIR=/code/tests/data/ template-r-tests /code/tests/tests.sh

# r-simple
- docker build ./templates/r-simple --tag=r-simple

after_success:
- docker images

Expand Down
2 changes: 1 addition & 1 deletion templates/r-tests/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: my.component
Type: Package
Title: Some title
Title: Some Title
Version: 0.0.1
Date: 2016-05-02
Author: Me
Expand Down
2 changes: 1 addition & 1 deletion templates/r-tests/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

export(CustomApplicationExample)
exportClasses(CustomApplicationExample)
import(my.component)
import(keboola.r.docker.application)
import(methods)
2 changes: 1 addition & 1 deletion templates/r-tests/tests/testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ if (nchar(Sys.getenv("KBC_DATADIR")) > 0) {
KBC_DATADIR <- Sys.getenv("KBC_DATADIR")
}

test_check("keboola.r.custom.application.subclass")
test_check("my.component")

0 comments on commit 504ce2f

Please sign in to comment.