"tests/python_package_test/test_basic.py" did not exist on "19e085c9925ac039cf2ce17649013b1ef69385ee"
Unverified Commit 2903ca0c authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[R-package] add 'cleanup' script to handle left-behind Makevars (#3434)

* [R-package] add 'cleanup' script to handle left-behind Makevars

* always install library for checkbashisms
parent 0fc4c5c4
...@@ -29,6 +29,8 @@ fi ...@@ -29,6 +29,8 @@ fi
# installing precompiled R for Ubuntu # installing precompiled R for Ubuntu
# https://cran.r-project.org/bin/linux/ubuntu/#installation # https://cran.r-project.org/bin/linux/ubuntu/#installation
# adding steps from https://stackoverflow.com/a/56378217/3986677 to get latest version # adding steps from https://stackoverflow.com/a/56378217/3986677 to get latest version
#
# `devscripts` is required for 'checkbashisms' (https://github.com/r-lib/actions/issues/111)
if [[ $OS_NAME == "linux" ]]; then if [[ $OS_NAME == "linux" ]]; then
sudo apt-key adv \ sudo apt-key adv \
--keyserver keyserver.ubuntu.com \ --keyserver keyserver.ubuntu.com \
...@@ -39,6 +41,7 @@ if [[ $OS_NAME == "linux" ]]; then ...@@ -39,6 +41,7 @@ if [[ $OS_NAME == "linux" ]]; then
sudo apt-get install \ sudo apt-get install \
--no-install-recommends \ --no-install-recommends \
-y --allow-downgrades \ -y --allow-downgrades \
devscripts \
r-base-dev=${R_LINUX_VERSION} \ r-base-dev=${R_LINUX_VERSION} \
texinfo \ texinfo \
texlive-latex-recommended \ texlive-latex-recommended \
...@@ -47,13 +50,12 @@ if [[ $OS_NAME == "linux" ]]; then ...@@ -47,13 +50,12 @@ if [[ $OS_NAME == "linux" ]]; then
qpdf \ qpdf \
|| exit -1 || exit -1
# https://github.com/r-lib/actions/issues/111
if [[ $R_BUILD_TYPE == "cran" ]]; then if [[ $R_BUILD_TYPE == "cran" ]]; then
sudo apt-get install \ sudo apt-get install \
--no-install-recommends \ --no-install-recommends \
-y \ -y \
autoconf=$(cat R-package/AUTOCONF_UBUNTU_VERSION) \ autoconf=$(cat R-package/AUTOCONF_UBUNTU_VERSION) \
devscripts \
|| exit -1 || exit -1
fi fi
fi fi
...@@ -61,11 +63,11 @@ fi ...@@ -61,11 +63,11 @@ fi
# Installing R precompiled for Mac OS 10.11 or higher # Installing R precompiled for Mac OS 10.11 or higher
if [[ $OS_NAME == "macos" ]]; then if [[ $OS_NAME == "macos" ]]; then
if [[ $R_BUILD_TYPE == "cran" ]]; then if [[ $R_BUILD_TYPE == "cran" ]]; then
brew install \ brew install automake
automake \
checkbashisms
fi fi
brew install qpdf brew install \
checkbashisms \
qpdf
brew cask install basictex brew cask install basictex
export PATH="/Library/TeX/texbin:$PATH" export PATH="/Library/TeX/texbin:$PATH"
sudo tlmgr --verify-repo=none update --self sudo tlmgr --verify-repo=none update --self
......
#!/bin/sh
rm -f src/Makevars
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment