You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .appveyor.yml
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -14,21 +14,22 @@ skip_branch_with_pr: true
14
14
15
15
environment:
16
16
global:
17
-
CRAN: http://cloud.r-project.org/
17
+
CRAN: http://cloud.r-project.org
18
18
WARNINGS_ARE_ERRORS: 1
19
-
R_CHECK_ARGS: --no-manual
20
-
# R_CHECK_ARGS specified in order to turn off --as-cran (on by default) as that can be slow
21
-
R_ARCH: x64
22
-
# multiarch is on by default which runs tests on both 32bit R and 64bit R in one x64 job; i.e. very nice and convenient for all.
23
-
# The default for R_ARCH is i386, though, for which multiarch would just compile and test 32bit, hence setting R_ARCH to x64
24
-
GCC_PATH: mingw_64
25
-
# Default GCC_PATH appears to be gcc-4.6.3 which is now unsupported as from Rtools.exe v3.4.
19
+
R_CHECK_ARGS: --as-cran --no-manual
20
+
# --no-manual to avoid error 'pdflatex is not available'
21
+
# --as-cran no longer a lot slower (now takes under 6 mins with and without); logs show _R_CHECK_CRAN_INCOMING_=FALSE which could take 5+ mins
22
+
_R_CHECK_NO_STOP_ON_TEST_ERROR_: true
23
+
# continue tests even if some script failed
24
+
_R_CHECK_TESTS_NLINES_: 0
25
+
# Block truncation of any error messages in R CMD check
26
+
# R is 64-bit only on Windows from 4.2.0 (prior default was build and test both 32bit and 64bit) so we no longer use R_ARCH to pick one to reduce CI time in PRs
26
27
27
28
matrix:
28
29
29
30
- R_VERSION: release # the single Windows.zip binary (both 32bit/64bit) that users following dev version of installation instructions should click
30
31
31
-
- R_VERSION: devel
32
+
# - R_VERSION: devel # Never turn back on. GLCI after merge covers latest daily R-devel very well, so we shouldn't confuse and slow down PR dev cycle by measuring PRs against daily R-devel too. If a change in R-devel yesterday breaks the PR, it's very unlikely to be due to something in the PR. So we should accept the PR if it passes R-release and fix separately anything related to R-devel which we'll see from GLCI.
32
33
33
34
before_build:
34
35
- cmd: ECHO no Revision metadata added to DESCRIPTION
# data.table continuous integration and deployment
2
+
3
+
On each Pull Request opened in GitHub we run GitHub Actions test jobs to provide prompt feedback about the status of PR. Our main CI pipeline runs on GitLab CI nightly. GitLab repository automatically mirrors our GitHub repository and runs pipeline on `master` branch every night. It tests more environments and different configurations. It publish variety of artifacts.
4
+
5
+
## Environments
6
+
7
+
### [GitLab CI](./../.gitlab-ci.yml)
8
+
9
+
Test jobs:
10
+
-`test-lin-rel` - `r-release` on Linux, most comprehensive test environment, force all suggests, `-O3 -flto=auto -fno-common -Wunused-result`, test for no compilation warnings.
11
+
-`test-lin-rel-vanilla` - `r-release` on Linux, no suggested deps, no zlib, no OpenMP, flags `-g -O0 -fno-openmp`, skip manual and vignettes.
12
+
-`test-lin-rel-cran` - `--as-cran` on Linux, strict test for final status of `R CMD check`.
13
+
-`test-lin-dev-gcc-strict-cran` - `--as-cran` on Linux, `r-devel` built with `-enable-strict-barrier --disable-long-double`, test for compilation warnings, test for new NOTEs/WARNINGs from `R CMD check`.
14
+
-`test-lin-dev-clang-cran` - same as `gcc-strict` job but R built with `clang` and no `--enable-strict-barrier --disable-long-double` flags.
15
+
-`test-lin-310-cran` - R 3.1.0 on Linux, stated R dependency version.
16
+
-`test-win-rel` - `r-release` on Windows.
17
+
-`test-win-dev` - `r-devel` on Windows.
18
+
-`test-win-old` - `r-oldrel` on Windows.
19
+
-`test-mac-rel` - macOS build not yet available, see [#3326](https://github.com/Rdatatable/data.table/issues/3326) for status
20
+
21
+
Tests jobs are allowed to fail, summary and logs of test jobs are later published at _CRAN-like checks_ page, see artifacts below.
22
+
23
+
Artifacts:
24
+
-[homepage](https://rdatatable.gitlab.io/data.table) - made with [pkgdown](https://github.com/r-lib/pkgdown)
Base R implemented helper script, [originally proposed to base R](https://svn.r-project.org/R/branches/tools4pkgs/src/library/tools/R/packages.R), that ease the process of extracting dependency information from description files, and to mirror packages and their recursive dependencies from CRAN to local CRAN-like directory. It is used in [GitLab CI pipeline](./../.gitlab-ci.yml).
47
+
48
+
### [`publish.R`](./publish.R)
49
+
50
+
Base R implemented helper script to orchestrate generation of most artifacts and to arrange them nicely. It is being used only in [_integration_ stage in GitLab CI pipeline](./../.gitlab-ci.yml).
## download dependencies recursively for provided packages
102
109
## put all downloaded packages into local repository
103
110
mirror.packages<-
104
-
function(pkgs,
105
-
which= c("Depends", "Imports", "LinkingTo"),
106
-
repos= getOption("repos"),
107
-
type= c("source", "mac.binary", "win.binary"),
108
-
repodir,
109
-
except.repodir=repodir,
110
-
except.priority="base",
111
+
function(pkgs,
112
+
which= c("Depends", "Imports", "LinkingTo"),
113
+
repos= getOption("repos"),
114
+
type= c("source", "mac.binary", "win.binary"),
115
+
repodir,
116
+
except.repodir=repodir,
117
+
except.priority="base",
111
118
method,
112
119
quiet=TRUE,
113
120
binary.ver,
@@ -161,7 +168,7 @@ function(pkgs,
161
168
warning(sprintf("Packages binaries could not be found in provided reposistories for R version %s: %s", binary.ver, paste(newpkgs[!availpkgs], collapse=", ")))
162
169
newpkgs<-newpkgs[availpkgs]
163
170
}
164
-
171
+
165
172
pkgsext<-switch(type,
166
173
"source"="tar.gz",
167
174
"mac.binary"="tgz",
@@ -171,14 +178,10 @@ function(pkgs,
171
178
unlink(dlfiles[file.exists(dlfiles)])
172
179
## repos argument is not used in download.packages, only as default for contriburl argument
173
180
## we provide contriburl to avoid interactive CRAN menu popup twice in mirror.packages
0 commit comments