From 3b8cb8b51f547342aa2be9c8bb8ea3f65831decd Mon Sep 17 00:00:00 2001 From: hrbrmstr Date: Mon, 2 Sep 2019 09:34:37 -0400 Subject: [PATCH] sourcehut build test --- .Rbuildignore | 3 ++- .build.yml | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.Rmd | 6 ++--- 3 files changed, 83 insertions(+), 4 deletions(-) create mode 100644 .build.yml diff --git a/.Rbuildignore b/.Rbuildignore index 3d6a6d1..9d7542d 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -12,4 +12,5 @@ ^\.vscode$ ^CRAN-RELEASE$ ^appveyor\.yml$ -^tools$ \ No newline at end of file +^tools$ +^\.build\.yml$ diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..58782c8 --- /dev/null +++ b/.build.yml @@ -0,0 +1,78 @@ +image: debian/buster +packages: + - bash-completion + - bison + - debhelper + - default-jdk + - g++ + - gcc + - gdb + - gfortran + - groff-base + - libblas-dev + - libbz2-dev + - libcairo2-dev + - libcurl4-openssl-dev + - libjpeg-dev + - liblapack-dev + - liblzma-dev + - libncurses5-dev + - libpango1.0-dev + - libpcre3-dev + - libpng-dev + - libreadline-dev + - libtiff5-dev + - libx11-dev + - libxt-dev + - mpack + - subversion + - tcl8.6-dev + - texinfo + - texlive-base + - texlive-extra-utils + - texlive-fonts-extra + - texlive-fonts-recommended + - texlive-generic-recommended + - texlive-latex-base + - texlive-latex-extra + - texlive-latex-recommended + - tk8.6-dev + - x11proto-core-dev + - xauth + - xdg-utils + - xfonts-base + - xvfb + - zlib1g-dev + - ed + - less + - locales + - vim-tiny + - wget + - ca-certificates + - fonts-texgyre + - libssl-dev + - libcurl4-openssl-dev + - r-base + - r-base-dev + - r-recommended +sources: + - https://git.sr.ht/~hrbrmstr/wand +triggers: + - action: email + condition: always + to: bob@rud.is +tasks: + - setup: | + sudo update-locale "LANG=en_US.UTF-8" + sudo locale-gen --purge "en_US.UTF-8" + sudo dpkg-reconfigure --frontend noninteractive locales + export LC_ALL=en_US.UTF-8 + export LANG=en_US.UTF-8 + export LANGUAGE=en_US.UTF-8 + 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", "tinytest"))' + - build: | + R CMD build wand + R CMD check wand_*gz diff --git a/README.Rmd b/README.Rmd index f234a2a..daea2c2 100644 --- a/README.Rmd +++ b/README.Rmd @@ -21,12 +21,12 @@ The header checking is minimal (i.e. nowhere near as comprehensive as `libmagic` ## What's Inside The Tin +The following functions are implemented: + ```{r ingredients, results='asis', echo=FALSE, cache=FALSE} hrbrpkghelpr::describe_ingredients() ``` -The following functions are implemented: - ## Installation ```{r install-ex, results='asis', echo=FALSE, cache=FALSE} @@ -54,7 +54,7 @@ list.files(system.file("extdat", package="wand"), full.names=TRUE) %>% unnest() ``` -## cloc Metrics +## wand Metrics ```{r cloc, echo=FALSE} cloc::cloc_pkg_md()