From 005d6692a8b4a7aefb83528575303a426bb9b390 Mon Sep 17 00:00:00 2001 From: hrbrmstr Date: Mon, 2 Sep 2019 16:44:27 -0400 Subject: [PATCH] smaller yml --- .build.yml | 68 +++++++++--------------------------------------------- 1 file changed, 11 insertions(+), 57 deletions(-) diff --git a/.build.yml b/.build.yml index 4103391..feac2d7 100644 --- a/.build.yml +++ b/.build.yml @@ -79,61 +79,15 @@ sources: - https://git.sr.ht/~hrbrmstr/tdigest tasks: - setup: | - echo "en_US.UTF-8 UTF-8" > loc - sudo cp loc /etc/locale.gen - sudo locale-gen --purge "en_US.UTF-8" - sudo /usr/sbin/update-locale LANG=en_US.UTF-8 - 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 -p ~/packages ~/.R - echo "CFLAGS=" > ~/.R/Makevars - echo "CPPFLAGS= " >> ~/.R/Makevars - echo "CXXFLAGS=" >> ~/.R/Makevars - echo "FCFLAGS=" >> ~/.R/Makevars - echo "FFLAGS=" >> ~/.R/Makevars - echo "GCJFLAGS=" >> ~/.R/Makevars - echo "LDFLAGS =" >> ~/.R/Makevars - echo "OBJCFLAGS=" >> ~/.R/Makevars - echo "OBJCXXFLAGS=" >> ~/.R/Makevars - export _R_CHECK_CRAN_INCOMING_=FALSE - export _R_CHECK_URLS_USE_CURL_=FALSE - export _R_CHECK_LENGTH_1_CONDITION_=TRUE - export _R_CHECK_LENGTH_1_LOGIC2_=TRUE - export _R_CHECK_TOPLEVEL_FILES_=TRUE - export _R_CHECK_VC_DIRS_=TRUE - export _R_CHECK_TIMINGS_=10 - export _R_CHECK_INSTALL_DEPENDS_=TRUE - export _R_CHECK_SUGGESTS_ONLY_=TRUE - export _R_CHECK_NO_RECOMMENDED_=TRUE - export _R_CHECK_EXECUTABLES_EXCLUSIONS_=FALSE - export _R_CHECK_DOC_SIZES2_=TRUE - export _R_CHECK_CODE_ASSIGN_TO_GLOBALENV_=TRUE - export _R_CHECK_CODE_ATTACH_=TRUE - export _R_CHECK_CODE_DATA_INTO_GLOBALENV_=TRUE - export _R_CHECK_CODE_USAGE_VIA_NAMESPACES_=TRUE - export _R_CHECK_DOT_FIRSTLIB_=TRUE - export _R_CHECK_DEPRECATED_DEFUNCT_=TRUE - export _R_CHECK_REPLACING_IMPORTS_=TRUE - export _R_CHECK_SCREEN_DEVICE_=stop - export _R_CHECK_TOPLEVEL_FILES_=TRUE - export _R_CHECK_S3_METHODS_NOT_REGISTERED_=TRUE - export _R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_=TRUE - export _R_CHECK_PRAGMAS_=TRUE - export _R_CHECK_CRAN_INCOMING_USE_ASPELL_=TRUE - export _R_CHECK_COMPILATION_FLAGS_=TRUE - export _R_CHECK_R_DEPENDS_=warn - export _R_CHECK_SERIALIZATION_=TRUE - export _R_CHECK_R_ON_PATH_=TRUE - export _R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_=TRUE - export _R_CHECK_SHLIB_OPENMP_FLAGS_=TRUE - export _R_CHECK_CONNECTIONS_LEFT_OPEN_=TRUE - export _R_CHECK_FUTURE_FILE_TIMESTAMPS_=TRUE - export _R_CHECK_AUTOCONF_=TRUE + wget "https://git.sr.ht/~hrbrmstr/sourcehut/blob/master/inst/helpers/build-helper.sh" + chmod 755 build-helper.sh + . ./build-helper.sh + setup_locale + setup_cran_repo + setup_compiler + setup_java + - build: | - sudo R CMD javareconf - Rscript -e "devtools::install_deps(pkg = '${R_PACKAGE}', upgrade = 'never', dependencies = TRUE)" - R CMD build ${R_PACKAGE} - R CMD check --as-cran ${R_PACKAGE}_*gz + . ./build-helper.sh + install_deps + build_and_check -- 2.45.2