Commit e09ac7fd authored by Jørgen Lind's avatar Jørgen Lind
Browse files

Merge branch 'ci-pipeline' into 'master'

Ci pipeline

See merge request osdu/open-vds!2
parents 5477406d 620e5a8f
stages:
- prepare
- build
- test
variables:
SHA_IMAGE_TAG: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
CMAKE_OPTIONS: -DFORCE_NO_LIBDIR_SUFFIX=ON
# --------------------------------------------------------------------------------
devel-container:
stage: prepare
image: docker:19.03
tags: ['docker-runner']
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $SHA_IMAGE_TAG -f build-environment.Dockerfile .
- docker push $SHA_IMAGE_TAG
# --------------------------------------------------------------------------------
compile:
stage: build
image: $SHA_IMAGE_TAG
tags: ['docker-runner']
artifacts:
expire_in: 1 hr
paths:
- build
script:
- mkdir -p build
- cd build
- cmake $CMAKE_OPTIONS ..
- make -j8
# --------------------------------------------------------------------------------
unit-tests:
stage: test
image: $SHA_IMAGE_TAG
tags: ['docker-runner']
script:
- cd build
- make test
......@@ -2,8 +2,8 @@ FROM alpine:latest
# Install the various required packages
RUN apk add python3 python3-dev gcc g++ cmake make git \
libxml2-dev boost-dev zlib-dev openssl-dev curl-dev \
util-linux-dev # This package contains the uuid development headers
libxml2-dev boost-dev zlib-dev openssl-dev curl-dev \
util-linux-dev # This package contains the uuid development headers
# Copy the python requirement list into the container and download the packages
COPY python/requirements-dev.txt /tmp/requirements-dev.txt
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment