kopia lustrzana https://github.com/jupyterhub/repo2docker
ci: refactor r tests, from 8 to 5 (~15 min saved)
rodzic
f8d0efe490
commit
2c0b14c7da
|
@ -79,7 +79,7 @@ class RBuildPack(PythonBuildPack):
|
||||||
#
|
#
|
||||||
# NOTE: When updating this version, also update
|
# NOTE: When updating this version, also update
|
||||||
# - tests/unit/test_r.py -> test_version_specification
|
# - tests/unit/test_r.py -> test_version_specification
|
||||||
# - tests/r/simple/verify
|
# - tests/r/r-rspm-apt/verify
|
||||||
#
|
#
|
||||||
r_version = version_map["4.2"]
|
r_version = version_map["4.2"]
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
install.packages("viridisLite")
|
|
|
@ -1 +0,0 @@
|
||||||
r-4.1-2021-10-22
|
|
|
@ -1 +0,0 @@
|
||||||
install.packages("testthat")
|
|
|
@ -0,0 +1 @@
|
||||||
|
install.packages("digest")
|
|
@ -0,0 +1 @@
|
||||||
|
r-2022-06-23
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
./verify.sh
|
||||||
|
./verify.r
|
|
@ -1,7 +1,9 @@
|
||||||
#!/usr/bin/env Rscript
|
#!/usr/bin/env Rscript
|
||||||
library('testthat')
|
library('digest')
|
||||||
|
|
||||||
# Fail if version is not 4.2
|
|
||||||
|
# Fail if version isn't 4.2, the default version for the RBuildPack
|
||||||
|
print(version)
|
||||||
if (!(version$major == "4" && as.double(version$minor) >= 2 && as.double(version$minor) < 3)) {
|
if (!(version$major == "4" && as.double(version$minor) >= 2 && as.double(version$minor) < 3)) {
|
||||||
quit("yes", 1)
|
quit("yes", 1)
|
||||||
}
|
}
|
|
@ -1,6 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
apt list
|
apt list
|
||||||
apt list | grep libsodium-dev
|
apt list | grep libsodium-dev
|
||||||
# make sure we got R
|
|
||||||
which R
|
|
|
@ -1,6 +1,6 @@
|
||||||
Package: binderdescription
|
Package: binderdescription
|
||||||
Version: 0.1
|
Version: 0.1
|
||||||
Date: 2018-09-18
|
Date: 2022-06-23
|
||||||
Title: Binder R DESCRIPTION support
|
Title: Binder R DESCRIPTION support
|
||||||
Description: Test that automatically building R packages works
|
Description: Test that automatically building R packages works
|
||||||
Author: Bastian Greshake Tzovaras <bgreshake@googlemail.com>
|
Author: Bastian Greshake Tzovaras <bgreshake@googlemail.com>
|
|
@ -0,0 +1 @@
|
||||||
|
install.packages("digest")
|
|
@ -1,7 +1,11 @@
|
||||||
#!/usr/bin/env Rscript
|
#!/usr/bin/env Rscript
|
||||||
library('testthat')
|
library('digest')
|
||||||
|
|
||||||
|
# Fail if version is not 3.6
|
||||||
print(version)
|
print(version)
|
||||||
|
if (!(version$major == "3" && as.double(version$minor) >= 6 && as.double(version$minor) < 7)) {
|
||||||
|
quit("yes", 1)
|
||||||
|
}
|
||||||
|
|
||||||
# Fail if MRAN isn't the configured CRAN mirror
|
# Fail if MRAN isn't the configured CRAN mirror
|
||||||
if (!(startsWith(options()$repos["CRAN"], "https://mran.microsoft.com"))) {
|
if (!(startsWith(options()$repos["CRAN"], "https://mran.microsoft.com"))) {
|
|
@ -1 +0,0 @@
|
||||||
install.packages("testthat")
|
|
|
@ -1 +0,0 @@
|
||||||
r-3.6-2018-07-07
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/usr/bin/env Rscript
|
|
||||||
library('testthat')
|
|
||||||
|
|
||||||
print(version)
|
|
||||||
# Fail if version is not 3.6
|
|
||||||
if (!(version$major == "3" && as.double(version$minor) >= 6 && as.double(version$minor) < 7)) {
|
|
||||||
quit("yes", 1)
|
|
||||||
}
|
|
|
@ -0,0 +1 @@
|
||||||
|
install.packages("digest")
|
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env Rscript
|
#!/usr/bin/env Rscript
|
||||||
library('testthat')
|
library('digest')
|
||||||
|
|
||||||
print(version)
|
|
||||||
# Fail if version is not 4.0
|
# Fail if version is not 4.0
|
||||||
|
print(version)
|
||||||
if (!(version$major == "4" && as.double(version$minor) >= 0 && as.double(version$minor) < 1)) {
|
if (!(version$major == "4" && as.double(version$minor) >= 0 && as.double(version$minor) < 1)) {
|
||||||
quit("yes", 1)
|
quit("yes", 1)
|
||||||
}
|
}
|
|
@ -1 +1 @@
|
||||||
install.packages("testthat")
|
install.packages("digest")
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env Rscript
|
#!/usr/bin/env Rscript
|
||||||
library('testthat')
|
library('digest')
|
||||||
|
|
||||||
print(version)
|
|
||||||
# Fail if version is not 4.0
|
# Fail if version is not 4.0
|
||||||
|
print(version)
|
||||||
if (!(version$major == "4" && as.double(version$minor) >= 0 && as.double(version$minor) < 1)) {
|
if (!(version$major == "4" && as.double(version$minor) >= 0 && as.double(version$minor) < 1)) {
|
||||||
quit("yes", 1)
|
quit("yes", 1)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
install.packages("testthat")
|
|
|
@ -1 +0,0 @@
|
||||||
install.packages("testthat")
|
|
|
@ -1 +0,0 @@
|
||||||
r-4.1-2021-10-22
|
|
|
@ -1,12 +0,0 @@
|
||||||
#!/usr/bin/env Rscript
|
|
||||||
library('testthat')
|
|
||||||
|
|
||||||
# Fail if version is not 4.1
|
|
||||||
if (!(version$major == "4" && as.double(version$minor) >= 1 && as.double(version$minor) < 2)) {
|
|
||||||
quit("yes", 1)
|
|
||||||
}
|
|
||||||
|
|
||||||
# R 4.1 always uses rspm snapshots
|
|
||||||
if (!(startsWith(options()$repos["CRAN"], "https://packagemanager.rstudio.com"))) {
|
|
||||||
quit("yes", 1)
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
install.packages("testthat")
|
|
|
@ -1 +0,0 @@
|
||||||
r-2020-07-07
|
|
Ładowanie…
Reference in New Issue