Skip to content
Snippets Groups Projects
Commit fc8b333b authored by Liuxi Mei's avatar Liuxi Mei
Browse files

Update .gitlab-ci.yml file

parent 6b4e3e05
No related branches found
No related tags found
2 merge requests!2Master,!1presetation
Pipeline #140397 failed
...@@ -4,25 +4,25 @@ stages: ...@@ -4,25 +4,25 @@ stages:
- test - test
- deploy - deploy
building: building:
stage: build stage: build
script: script:
- R -e "remotes::install_deps(dependencies = TRUE)" - R -e "remotes::install_deps(dependencies = TRUE)"
- R -e 'devtools::check()' - R -e 'devtools::check()'
testing: testing:
stage: test stage: test
allow_failure: true allow_failure: true
when: on_success when: on_success
only: only:
- master - master
coverage: '/coverage: \d+.\d+% of statements/' coverage: '/coverage: \d+.\d+% of statements/'
script: script:
- Rscript -e 'install.packages("DT")' - Rscript -e 'install.packages("DT")'
- Rscript -e 'install.packages("covr")' - Rscript -e 'install.packages("covr")'
- Rscript -e 'covr::gitlab(quiet = FALSE)' - Rscript -e 'covr::gitlab(quiet = FALSE)'
artifacts: artifacts:
paths: paths:
- public - public
# To produce a code coverage report as a GitLab page see # To produce a code coverage report as a GitLab page see
# https://about.gitlab.com/2016/11/03/publish-code-coverage-report-with-gitlab-pages/ # https://about.gitlab.com/2016/11/03/publish-code-coverage-report-with-gitlab-pages/
pages: pages:
...@@ -34,6 +34,6 @@ pages: ...@@ -34,6 +34,6 @@ pages:
artifacts: artifacts:
paths: paths:
- public - public
expire_in: 30 days expire_in: 30 days
only: only:
- master - master
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment