Skip to content
Snippets Groups Projects
Forked from cnafsd / ngx_http_voms_module
277 commits behind the upstream repository.
.gitlab-ci.yml 831 B
# This file is a template, and might need editing before it works on your project.
# Official docker image.
image: joda70/ngx-voms-build:latest

stages:
  - build
  - test
  - deploy

build:
  stage: build
  script:
    - env
    - sh ${HOME}/build-install-ngx-voms.sh
    - mv ${HOME}/local local
  artifacts:
    paths:
      - local

test:
  stage: test
  dependencies:
    - build
  script:
    - rm -rf ${HOME}/local/
    - mv local ${HOME}
    - sh test-ngx-voms.sh

coverage:
  stage: test
  script:
    - env
    - sh ${HOME}/build-install-ngx-voms.sh -d -c
    - sh test-ngx-voms.sh
    - sh cov-ngx-voms.sh
    - mv cov coverage
  artifacts:
    paths:
      - coverage

pages:
  stage: deploy
  dependencies:
    - testc
  script:
    - mv coverage/ public/
  artifacts:
    paths:
      - public
    expire_in: 30 days