{% set version = '1.3.0' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-shinytest
  version: {{ version|replace("-", "_") }}

source:
  fn: shinytest_{{ version }}.tar.gz
  url:
    - {{ cran_mirror }}/src/contrib/shinytest_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/shinytest/shinytest_{{ version }}.tar.gz
  sha256: 83c01c9614de99331ae8520bba6047240dde3b436b9b0735e0d25f290e5ffa75

build:
  merge_build_host: True  # [win]
  number: 0
  skip: true  # [win32]
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-r6
    - r-assertthat
    - r-callr >=2.0.3
    - r-crayon
    - r-debugme
    - r-digest
    - r-htmlwidgets
    - r-httpuv
    - r-httr
    - r-jsonlite
    - r-parsedate
    - r-pingr
    - r-rematch
    - r-shiny >=1.0.4
    - r-testthat >=1.0.0
    - r-webdriver >=1.0.5
    - r-withr
    - phantomjs
  run:
    - r-base
    - r-r6
    - r-assertthat
    - r-callr >=2.0.3
    - r-crayon
    - r-debugme
    - r-digest
    - r-htmlwidgets
    - r-httpuv
    - r-httr
    - r-jsonlite
    - r-parsedate
    - r-pingr
    - r-rematch
    - r-shiny >=1.0.4
    - r-testthat >=1.0.0
    - r-webdriver >=1.0.5
    - r-withr
    - phantomjs

test:
  commands:
    - $R -e "library('shinytest')"           # [not win]
    - "\"%R%\" -e \"library('shinytest')\""  # [win]

about:
  home: https://github.com/rstudio/shinytest
  license: MIT
  summary: For automated testing of Shiny applications, using a headless browser, driven through
    'WebDriver'.
  license_family: MIT

extra:
  recipe-maintainers:
    - johanneskoester
    - bgruening
    - daler
    - jdblischak
    - cbrueffer
    - dbast
