From 39fb5300df050ec86b0d92b6a1a3ea7219a0664a Mon Sep 17 00:00:00 2001 From: gagolews Date: Sat, 1 May 2021 10:57:46 +1000 Subject: [PATCH] build chain upd --- .github/workflows/r-icu-bundle.yml | 4 ++-- .github/workflows/r-icu-system.yml | 10 +++++----- Makefile | 20 ++++++++++---------- devel/tinytest/test-time-zone.R | 4 ++-- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/r-icu-bundle.yml b/.github/workflows/r-icu-bundle.yml index a62362701..ef4bb330f 100644 --- a/.github/workflows/r-icu-bundle.yml +++ b/.github/workflows/r-icu-bundle.yml @@ -20,8 +20,8 @@ jobs: sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" sudo apt-get -y upgrade sudo apt-get -y install libcurl4-openssl-dev r-base-dev devscripts - sudo Rscript -e "install.packages(c('tinytest', 'roxygen2', 'pkgbuild'))" - - name: Test and check R + sudo Rscript -e "install.packages(c('tinytest', 'roxygen2', 'pkgbuild', 'Rcpp'))" + - name: Test and check stringi run: | sudo make r-icu-bundle sudo make tinytest diff --git a/.github/workflows/r-icu-system.yml b/.github/workflows/r-icu-system.yml index 8c6bd9ea8..55e53f9eb 100644 --- a/.github/workflows/r-icu-system.yml +++ b/.github/workflows/r-icu-system.yml @@ -15,9 +15,9 @@ jobs: run: | sudo apt-get update sudo apt-get -y upgrade - sudo apt-get -y install libcurl4-openssl-dev r-base-dev devscripts libicu-dev - sudo Rscript -e "install.packages(c('tinytest'))" - - name: Test and check R + sudo apt-get -y install libcurl4-openssl-dev r-base-dev devscripts libicu-dev language-pack-pl + sudo Rscript -e "install.packages(c('tinytest', 'Rcpp'))" + - name: Test stringi run: | - sudo make r-icu-system - sudo make tinytest + LC_ALL="pl_PL.UTF-8" sudo make r-icu-system + LC_ALL="pl_PL.UTF-8" sudo make tinytest diff --git a/Makefile b/Makefile index 368b46ccb..96d9457da 100644 --- a/Makefile +++ b/Makefile @@ -9,9 +9,11 @@ all: r #CPPFLAGS="-fopenmp -march=native -mtune=native" #LDFLAGS="-fopenmp" -r: - Rscript -e 'roxygen2::roxygenise(roclets=c("rd", "collate", "namespace", "vignette"), load_code=roxygen2::load_installed)' +autoconf: autoconf + Rscript -e 'roxygen2::roxygenise(roclets=c("rd", "collate", "namespace", "vignette"), load_code=roxygen2::load_installed)' + +r: autoconf R CMD INSTALL . --configure-args='--disable-pkg-config --enable-gcc-debug --enable-gcc-pedantic' --html r-icu-system: @@ -20,20 +22,18 @@ r-icu-system: r-icu-bundle: R CMD INSTALL . --configure-args='--disable-pkg-config' +tinytest: + Rscript -e 'options(width=120); source("devel/tinytest.R")' + +test: r tinytest + build: - Rscript -e 'roxygen2::roxygenise(roclets=c("rd", "collate", "namespace", "vignette"))' - autoconf cd .. && R CMD INSTALL stringi --preclean --html cd .. && R CMD build stringi + make clean check: build cd .. && R CMD check `ls -t stringi*.tar.gz | head -1` --no-manual #--as-cran - make clean - -tinytest: - Rscript -e 'options(width=120); source("devel/tinytest.R")' - -test: r tinytest weave: cd devel/sphinx/weave && make && cd ../../../ diff --git a/devel/tinytest/test-time-zone.R b/devel/tinytest/test-time-zone.R index c3fdd07eb..d0308f324 100644 --- a/devel/tinytest/test-time-zone.R +++ b/devel/tinytest/test-time-zone.R @@ -33,6 +33,6 @@ expect_equivalent(stri_timezone_info(tz = "Europe/Warsaw", locale = "en_GB"), list("Europe/Warsaw", "Central European Standard Time", "Central European Summer Time", "Central European Standard Time", 1, TRUE)) -expect_equivalent(stri_timezone_info(tz = "Asia/Kathmandu", locale = "pl_PL"), - list("Asia/Kathmandu", "Nepal", NA_character_, "Nepal Standard Time", 5.75, +expect_equivalent(stri_timezone_info(tz = "Asia/Kathmandu", locale = "en_GB"), + list("Asia/Kathmandu", "Nepal Time", NA_character_, "Nepal Standard Time", 5.75, FALSE))