-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci-pipeline-for-master: Add ci-pipeline file
- Loading branch information
1 parent
c823707
commit 0faff92
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 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: gcc | ||
|
||
build: | ||
stage: build | ||
# instead of calling g++ directly you can also use some build toolkit like make | ||
# install the necessary build tools when needed | ||
before_script: | ||
- apt update && apt -y install cmake libgpgme-dev libgcrypt-dev libfuse-dev makepasswd encfs python3-pgpdump opensc-pkcs11 libc6-dev pcscd automake libpcsclite-dev | ||
- ln -s /usr/lib/x86_64-linux-gnu/libopensc.so.7.0.0 /usr/lib/x86_64-linux-gnu/libopensc.so | ||
script: | ||
- cd build | ||
- cmake .. | ||
- make install | ||
|
||
artifacts: | ||
paths: | ||
# - mybinary | ||
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time | ||
# cache: | ||
# paths: | ||
# - "*.o" | ||
|
||
# run tests using the binary built before | ||
#test: | ||
# stage: test | ||
# script: | ||
# - ./runmytests.sh |