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
# data.table continuous integration and deployment
2
2
3
-
On each Pull Request opened in GitHub we run Travis CI and Appveyor to provide prompt feedback about the status of PR. Our main CI pipeline runs on GitLab CI. GitLab repository automatically mirrors our GitHub repository and runs pipeline on `master` branch. It tests more environments and different configurations. It publish variety of artifacts.
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
4
5
5
## Environments
6
6
7
7
### [GitLab CI](./../.gitlab-ci.yml)
8
8
9
9
Test jobs:
10
-
-`test-rel-lin` - `r-release` on Linux, most comprehensive test environment, `-O3 -flto -fno-common -Wunused-result`, extra check for no compilation warnings, includes testing [_with other packages_](./../inst/tests/other.Rraw)
11
-
-`test-rel-cran-lin` - `--as-cran` on Linux, `-g0`, extra check for final status of `R CMD check` where we allow one NOTE (_size of tarball_).
12
-
-`test-dev-cran-lin` - `r-devel` and `--as-cran` on Linux, `--with-recommended-packages --enable-strict-barrier --disable-long-double`, tests for compilation warnings in pkg install and new NOTEs/Warnings in pkg check, and because it is R-devel it is marked as allow_failure
13
-
-`test-rel-vanilla-lin` - `r-release` on Linux, no suggested deps, no OpenMP, `-O0`, tracks memory usage during tests
14
-
-`test-310-cran-lin` - R 3.1.0 on Linux
15
-
-`test-344-cran-lin` - R 3.4.4 on Linux
16
-
-`test-350-cran-lin` - R 3.5.0 on Linux, no `r-recommended`
17
-
-`test-rel-win` - `r-release` on Windows
18
-
-`test-dev-win` - `r-devel` on Windows
19
-
-`test-old-win` - `r-oldrel` on Windows
20
-
-`test-rel-osx` - MacOSX build not yet deployed, see [#3326](https://github.com/Rdatatable/data.table/issues/3326) for status
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.
21
22
22
23
Artifacts:
23
24
-[homepage](https://rdatatable.gitlab.io/data.table) - made with [pkgdown](https://github.com/r-lib/pkgdown)
- R packages repository for `data.table` and all _Suggests_ dependencies, url: `https://Rdatatable.gitlab.io/data.table`
28
+
- R packages repository for `data.table` and all _Suggests_ dependencies, url: `https://rdatatable.gitlab.io/data.table`
28
29
- sources
29
30
- Windows binaries for `r-release`, `r-devel` and `r-oldrel`
-[CRAN-like checks results](https://rdatatable.gitlab.io/data.table/web/checks/check_results_data.table.html) - note that all artifacts, including check results page, are being published only when all test jobs successfully pass, thus one will not see an _ERROR_ status there (unless error happened on a job marked as `allow_failure`).
32
-
-[docker images](https://gitlab.com/Rdatatable/data.table/container_registry) - copy/paste-able `docker pull` commands can be found at the bottom of our [CRAN-like homepage](https://rdatatable.gitlab.io/data.table/web/packages/data.table/index.html)
-`r-release` on Linux, includes code coverage check
38
-
-_(might be disabled)_`r-release` on OSX
39
-
40
-
Artifacts:
41
-
- R packages repository having `data.table` sources only, url: `https://Rdatatable.github.io/data.table`
42
-
- code coverage stats pushed to [codecov.io/gh/Rdatatable/data.table](https://codecov.io/gh/Rdatatable/data.table)
36
+
TODO document
43
37
44
38
### [Appveyor](./../.appveyor.yml)
45
39
46
-
Test jobs:
47
-
- Windows `r-release`
48
-
-_(might be disabled)_ Windows `r-devel`
49
-
50
-
Artifacts:
51
-
- Windows `r-release` binaries accessed only via web UI
40
+
TODO document
52
41
53
-
## Tools
42
+
## CI tools
54
43
55
44
### [`ci.R`](./ci.R)
56
45
57
-
Base R implemented helper script, [originally proposed to 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, also to mirror packages and their recursive dependencies from CRAN to local CRAN-like directory. It is widely used in our[GitLab CI pipeline](./../.gitlab-ci.yml).
46
+
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).
58
47
59
48
### [`publish.R`](./publish.R)
60
49
61
-
Base R implemented helper script to orchestrate generation of most artifacts. It is being used only in [_integration_ stage in GitLab CI pipeline](./../.gitlab-ci.yml).
62
-
63
-
### [`Dockerfile.in`](./Dockerfile.in)
64
-
65
-
Template file to produce `Dockerfile` for, as of now, three docker images. Docker images are being built and published in [_deploy_ stage in GitLab CI pipeline](./../.gitlab-ci.yml).
66
-
-`r-base-dev` using `r-release`: publish docker image of `data.table` on R-release
67
-
-`r-builder` using `r-release`: publish on R-release and OS dependencies for building Rmarkdown vignettes
68
-
-`r-devel`: publish docker image of `data.table` on R-devel built with `--with-recommended-packages --enable-strict-barrier --disable-long-double`
69
-
70
-
### [`deploy.sh`](./deploy.sh)
71
-
72
-
Script used on Travis CI to publish CRAN-like repository of `data.table` sources. It publishes to `gh-pages` branch in GitHub repository. It depends on a token, which is provided based on `secure` environment variable in [.travis.yml](./../.travis.yml). It has been generated by @jangorecki.
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).
if (nrow(vign)) sprintf("<tr><td>Vignettes:</td><td>%s</td></tr>", paste(sprintf("<a href=\"%s/library/data.table/doc/%s\">%s</a><br/>", cran.home, vign[,"PDF"], vign[,"Title"]), collapse="\n")), # location unline cran web/pkg/vignettes to not duplicate content, documentation is in ../../../library
0 commit comments