added .gitlab-ci.yml and wrote cpp build script

This commit is contained in:
Marcel M. Otte 2016-04-18 18:04:56 +02:00
parent 50b8645f8c
commit bd6deca62e
1 changed files with 30 additions and 0 deletions

30
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,30 @@
image: gcc:latest
stages:
- build
build-c:
stage: build
script:
- cd c; make
artifacts:
paths:
- c/libcmdlineoptions.*
- c/tests-*
build-cpp:
stage: build
script:
- cd cpp; mkdir build; cd build
- cmake ..
- make
artifacts:
paths:
- cpp/build/libCmdLineOptions.so
- cpp/build/libCmdLineOptions_static.a
#test-c:
#stage: test
#script:
#- cd c; make test
#dependencies:
#- build-c