-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
66 lines (59 loc) · 2.46 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This file is a template, and might need editing before it works on your project.
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/C++.gitlab-ci.yml
# use the official gcc image, based on debian
# can use verions as well, like gcc:5.2
# see https://hub.docker.com/_/gcc/
image: debian:buster-20220125
stages:
- build
- test
include:
- template: Code-Quality.gitlab-ci.yml
before_script:
- apt-get update && apt-get install -y build-essential autoconf libtool pkg-config python3 python3-crypto help2man libpcsclite-dev apache2 apache2-dev subversion libwxgtk3.0-gtk3-dev libcrypto++-dev expat git gengetopt libqrencode-dev wget
build:
stage: build
script:
- export PREFIX=$PWD
- export CONF_FILES="/etc/sysconfig/apache2 /etc/apache2/apache2.conf"
- git submodule update --init --recursive
- cd vsmartcard/virtualsmartcard
- autoreconf --verbose --install
- ./configure --sysconfdir=/etc
- make
- make install
- cd -
- cd eIDClientCore
- export PREFIX=$PWD
- make asn1c
- make openssl
- make libcurl
- make eIDClient
- cd -
- export PREFIX=$PWD
- sed -i '/eIDClientCoreEIDCCBinaryPath \"\"/c\eIDClientCoreEIDCCBinaryPath \"'$PREFIX'\/eIDClientCore\/bin\/Test_nPAClientLib_AutentApp\"' apache_module/httpd.conf.eIDClientCore
- sed -i '/eIDClientCoreParserCommand \"\"/c\eIDClientCoreParserCommand \"python '$PREFIX'\/apache_module\/parser\/parser.py\"' apache_module/httpd.conf.eIDClientCore
- sed -i '/eIDClientCoreEIDCCLibraryPath \"\"/c\eIDClientCoreEIDCCLibraryPath \"'$PREFIX'\/eIDClientCore\/lib/\"' apache_module/httpd.conf.eIDClientCore
- make -C apache_module
- for f in $CONF_FILES; do echo "Include $PREFIX/apache_module/httpd.conf.eIDClientCore" >> $f || echo Nevermind; done
- cp apache_module/selbstauskunft-in-the-middle-example.html /var/www/html/index.html
artifacts:
paths:
- eIDClientCore/bin/SimpleClient
- eIDClientCore/bin/Start_Testcase
- eIDClientCore/lib/
- apache_module/.libs/mod_eIDClientCore.so
- apache_module/httpd.conf.eIDClientCore
- /etc/apache2/apache2.conf
code_quality:
before_script:
- ''
stage: test
variables:
REPORT_FORMAT: html
artifacts:
paths:
- gl-code-quality-report.html