Browse Source

another try

master
boB Rudis 5 years ago
parent
commit
98885095d2
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 1
      .Rbuildignore
  2. 6
      .build.yml
  3. 2
      DESCRIPTION
  4. 2
      LICENSE
  5. 21
      LICENSE.md
  6. 36
      inst/templates/build.yml

1
.Rbuildignore

@ -20,3 +20,4 @@
^appveyor\.yml$
^tools$
^\.build\.yml$
^LICENSE\.md$

6
.build.yml

@ -71,7 +71,6 @@ packages:
- r-cran-stringi
- r-cran-testthat
- r-cran-testit
- r-cran-tinytest
- r-cran-tidyverse
- r-cran-xml2
environment:
@ -108,13 +107,12 @@ environment:
_R_CHECK_SHLIB_OPENMP_FLAGS_: TRUE
_R_CHECK_CONNECTIONS_LEFT_OPEN_: TRUE
_R_CHECK_FUTURE_FILE_TIMESTAMPS_: TRUE
_R_CHECK_AUTOCONF_: true
_R_CHECK_AUTOCONF_: TRUE
sources:
- https://git.sr.ht/~hrbrmstr/sourcehut
tasks:
- setup: |
sudo locale-gen --purge "en_US.UTF-8"
sudo update-locale "LANG=en_US.UTF-8"
sudo dpkg-reconfigure --frontend noninteractive locales
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
@ -122,7 +120,7 @@ tasks:
echo 'options(repos = c(CRAN = "https://cloud.r-project.org"))' > ~/.Rprofile
echo 'R_LIBS_USER=/home/build/packages' > ~/.Renviron
mkdir /home/build/packages
Rscript -e 'install.packages(c("covr"))'
Rscript -e 'install.packages(c("covr", "tinytest"))'
- build: |
R CMD build ${R_PACKAGE}
R CMD check ${R_PACKAGE}_*gz

2
DESCRIPTION

@ -12,7 +12,7 @@ Description: SourceHut (<https://sourcehut.org/>) provides support for collabora
URL: https://gitlab.com/hrbrmstr/sourcehut
BugReports: https://gitlab.com/hrbrmstr/sourcehut/issues
Encoding: UTF-8
License: AGPL
License: MIT + file LICENSE
Suggests: covr, tinytest
Depends: R (>= 3.2.0)
Imports: httr, jsonlite, usethis, crayon, desc, rprojroot

2
LICENSE

@ -0,0 +1,2 @@
YEAR: 2019
COPYRIGHT HOLDER: Bob Rudis

21
LICENSE.md

@ -0,0 +1,21 @@
# MIT License
Copyright (c) 2019 Bob Rudis
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

36
inst/templates/build.yml

@ -71,11 +71,43 @@ packages:
- r-cran-stringi
- r-cran-testthat
- r-cran-testit
- r-cran-tinytest
- r-cran-tidyverse
- r-cran-xml2
environment:
R_PACKAGE: {{{pkg}}}
_R_CHECK_URLS_USE_CURL_: FALSE
_R_CHECK_LENGTH_1_CONDITION_: TRUE
_R_CHECK_LENGTH_1_LOGIC2_: TRUE
_R_CHECK_TOPLEVEL_FILES_: TRUE
_R_CHECK_VC_DIRS_: TRUE
_R_CHECK_TIMINGS_: 10
_R_CHECK_INSTALL_DEPENDS_: TRUE
_R_CHECK_SUGGESTS_ONLY_: TRUE
_R_CHECK_NO_RECOMMENDED_: TRUE
_R_CHECK_EXECUTABLES_EXCLUSIONS_: FALSE
_R_CHECK_DOC_SIZES2_: TRUE
_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_: TRUE
_R_CHECK_CODE_ATTACH_: TRUE
_R_CHECK_CODE_DATA_INTO_GLOBALENV_: TRUE
_R_CHECK_CODE_USAGE_VIA_NAMESPACES_: TRUE
_R_CHECK_DOT_FIRSTLIB_: TRUE
_R_CHECK_DEPRECATED_DEFUNCT_: TRUE
_R_CHECK_REPLACING_IMPORTS_: TRUE
_R_CHECK_SCREEN_DEVICE_: stop
_R_CHECK_TOPLEVEL_FILES_: TRUE
_R_CHECK_S3_METHODS_NOT_REGISTERED_: TRUE
_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_: TRUE
_R_CHECK_PRAGMAS_: TRUE
_R_CHECK_CRAN_INCOMING_USE_ASPELL_: TRUE
_R_CHECK_COMPILATION_FLAGS_: TRUE
_R_CHECK_R_DEPENDS_: warn
_R_CHECK_SERIALIZATION_: TRUE
_R_CHECK_R_ON_PATH_: TRUE
_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_: TRUE
_R_CHECK_SHLIB_OPENMP_FLAGS_: TRUE
_R_CHECK_CONNECTIONS_LEFT_OPEN_: TRUE
_R_CHECK_FUTURE_FILE_TIMESTAMPS_: TRUE
_R_CHECK_AUTOCONF_: TRUE
sources:
- https://git.sr.ht/{{{username}}}/{{{pkg}}}
tasks:
@ -89,7 +121,7 @@ tasks:
echo 'options(repos = c(CRAN = "https://cloud.r-project.org"))' > ~/.Rprofile
echo 'R_LIBS_USER=/home/build/packages' > ~/.Renviron
mkdir /home/build/packages
Rscript -e 'install.packages(c("covr"))'
Rscript -e 'install.packages(c("covr", "tinytest"))'
- build: |
R CMD build ${R_PACKAGE}
R CMD check ${R_PACKAGE}_*gz

Loading…
Cancel
Save