Skip to content
Snippets Groups Projects
Commit e29312c8 authored by Francesco Giacomini's avatar Francesco Giacomini
Browse files

Merge branch 'issue-7' into 'master'

Issue 7

See merge request storm2/ngx_http_voms_module!4
parents 4a159525 d840c1eb
No related branches found
No related tags found
1 merge request!4Issue 7
Pipeline #
......@@ -2,24 +2,26 @@
# Official docker image.
image: storm2/ngx-voms-build:latest
before_script:
- source ${HOME}/openresty-env
stages:
- build
- test
build:
stage: build
script:
- env | sort
- id
# ngx_http_voms_module build
- env
- sh ${HOME}/build-install-ngx-voms.sh
- mv ${HOME}/local local
artifacts:
paths:
- local
test:
stage: test
dependencies:
- build
script:
- env | sort
- id
# ngx_http_voms_module test
- sh ${HOME}/build-install-ngx-voms.sh
- cp -r t /tmp
- cd /tmp
- prove -v
- rm -rf ${HOME}/local/
- mv local ${HOME}
#- mv -f local/* ${HOME}/local/
- sh test-ngx-voms.sh
#!/bin/sh
# Copyright 2018 Istituto Nazionale di Fisica Nucleare
#
# Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the
# European Commission - subsequent versions of the EUPL (the "Licence"). You may
# not use this work except in compliance with the Licence. You may obtain a copy
# of the Licence at:
#
# https://joinup.ec.europa.eu/software/page/eupl
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Licence is distributed on an "AS IS" basis, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# Licence for the specific language governing permissions and limitations under
# the Licence.
# This script builds in debug mode and installs openresty together with the
# ngx_http_voms_module.
#
# The script requires the locations of the openresty bundle and of the
# ngx_http_voms_module code (for example as checked-out from git). The locations
# are expressed by the environment variables OPENRESTY_ROOT and
# NGX_HTTP_VOMS_MODULE_ROOT respectively, if available. If they are not set,
# they are guessed:
# * a unique openresty bundle is looked for in ${HOME}
# * the ngx_http_voms_module code is looked for in the working directory of the
# continuous integration environment first and then in ${HOME}
#
# The script works best (i.e. it is tested) if run within a docker container
# started from the storm2/ngx-voms-build image.
if [ -r "${HOME}/openresty-env" ]; then
. ${HOME}/openresty-env
fi
module_root=${NGX_HTTP_VOMS_MODULE_ROOT:-${CI_PROJECT_DIR:-${HOME}/ngx_http_voms_module}}
if [ ! -d "${module_root}" ]; then
>&2 echo 'Invalid ngx_http_voms_module environment ("'${module_root}'")'
exit 1
fi
mkdir /tmp/t
prove ${module_root}/t
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