Skip to content
Snippets Groups Projects
.gitlab-ci.yml 846 B
Newer Older
pqiao29's avatar
pqiao29 committed
default:
  image: pqiao/sirplus_dev

stages:
  - build
  - document
  - check
  - test
  - deploy
  
variables:
  _R_CHECK_CRAN_INCOMING_: "false"
  _R_CHECK_FORCE_SUGGESTS_: "true"
  CODECOV_TOKEN: "2329aed3-de38-468c-9a06-95564363211c"
pqiao29's avatar
pqiao29 committed
  GIT_SSL_NO_VERIFY: "true"
pqiao29's avatar
pqiao29 committed

buildbinary:
  tags: 
    - docker
  image: pqiao/sirplus_dev
  stage: build
  script:
    - R -e 'devtools::build(binary = TRUE)'

documentation:
  tags: 
    - docker
  image: pqiao/sirplus_dev
  stage: document
  script:
    - R -e 'devtools::document()'

pqiao29's avatar
pqiao29 committed
check:
pqiao29's avatar
pqiao29 committed
  tags:
    - docker
  image: pqiao/sirplus_dev
  stage: check
  script:
pqiao29's avatar
pqiao29 committed
    - R -e 'devtools::check(error_on = c("warning"),document = FALSE, args = "--no-tests")'
pqiao29's avatar
pqiao29 committed
pages:
  tags: 
    - pages
  stage: deploy
  script:
    - echo 'Nothing to do...'
  artifacts:
    paths:
      - public
  only:
    - master