Skip to content
Snippets Groups Projects
Commit dfe1c4d0 authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

SW-394: Playing with gitlab CI yaml file

parent 3e2ef1bd
Branches
Tags
1 merge request!80SW-830: Resolve SW-394
image: centos:7
before_script:
- echo "Installing dependencies (this should go in a custom Docker image for CI to avoid reinstalling dependencies for each stage)..."
- yum -y groupinstall 'Development Tools'
- yum -y install cmake epel-release python3 python3-devel python3-pip
- yum -y install cmake epel-release python3 python3-devel python3-pip log4cplus-devel postgresql-devel openldap-devel readline-devel qpid-cpp-server qpid-cpp-client-devel qpid-tools
- pip3 install kombu psycopg2 requests lxml xmljson pygcn python-dateutil django djangorestframework djangorestframework-xml django-auth-ldap mysql-connector testing.mysqld testing.postgresql
stages:
- build
......@@ -11,11 +13,7 @@ stages:
build_TriggerServices:
stage: build
script:
- PACKAGE=TriggerServices
- echo "[$PACKAGE] Installing dependencies..."
- yum -y install log4cplus-devel postgresql-devel openldap-devel readline-devel qpid-cpp-server qpid-cpp-client-devel qpid-tools
- pip3 install kombu psycopg2 requests lxml xmljson pygcn python-dateutil django djangorestframework djangorestframework-xml django-auth-ldap mysql-connector testing.mysqld testing.postgresql
- echo "[$PACKAGE] Building..."
- echo "Building TriggerServices..."
- mkdir -p build/gnucxx11_opt
- cd build/gnucxx11_opt
- cmake -DBUILD_PACKAGES=TriggerServices ../..
......@@ -28,5 +26,6 @@ build_TriggerServices:
test:
stage: test
script:
- echo "Testing..."
- echo "Testing TriggerServices..."
- cd build/gnucxx11_opt
- ctest
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment