85 lines
1.6 KiB
YAML
85 lines
1.6 KiB
YAML
services:
|
|
- ${DOCKER_REGISTRY}/leenooks/ci-docker:dind
|
|
|
|
stages:
|
|
- build
|
|
- test
|
|
- docker
|
|
|
|
# For some reason compiling on CentOS 6.x results in buffer corruption
|
|
build:6-7.1:
|
|
stage: build
|
|
image: leenooks/ci-tsm:6-7.1
|
|
script:
|
|
- make -f Makefile.linux64
|
|
only:
|
|
- c6
|
|
tags:
|
|
- C
|
|
artifacts:
|
|
name: "$CI_BUILD_NAME"
|
|
paths:
|
|
- tsmpipe
|
|
|
|
test:6-7.1:
|
|
stage: test
|
|
image: leenooks/ci-tsm:6-7.1
|
|
dependencies:
|
|
- build:6-7.1
|
|
script:
|
|
- cd test && ./test.sh
|
|
only:
|
|
- c6
|
|
tags:
|
|
- C
|
|
|
|
# Compile on CentOS 6.x, for some reason compiling on CentOS 7.x results in buffer corruption
|
|
build:7-8.1:
|
|
stage: build
|
|
image: leenooks/ci-tsm:7-8.1
|
|
script:
|
|
- make -f Makefile.linux64
|
|
only:
|
|
- master
|
|
tags:
|
|
- C
|
|
artifacts:
|
|
name: "$CI_BUILD_NAME"
|
|
paths:
|
|
- tsmpipe
|
|
|
|
test:7-8.1:
|
|
stage: test
|
|
image: leenooks/ci-tsm:7-8.1
|
|
dependencies:
|
|
- build:7-8.1
|
|
script:
|
|
- cd test && ./test.sh
|
|
only:
|
|
- master
|
|
tags:
|
|
- C
|
|
|
|
docker:7-8.1:
|
|
stage: docker
|
|
image: docker:latest
|
|
before_script:
|
|
- docker info
|
|
- docker version
|
|
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${DOCKER_REGISTRY}
|
|
variables:
|
|
VERSION: 8.1.0
|
|
DOCKER_IMAGE: deon/tsmpipe
|
|
DOCKER_REGISTRY: registry.leenooks.net
|
|
DOCKER_HOST: tcp://${DOCKER_REGISTRY}-leenooks-ci-docker:2375
|
|
dependencies:
|
|
- test:7-8.1
|
|
script:
|
|
- docker build -t ${DOCKER_IMAGE}:${VERSION} .
|
|
- docker tag ${DOCKER_IMAGE}:${VERSION} ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION}
|
|
- docker push ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION}
|
|
tags:
|
|
- docker
|
|
only:
|
|
- master
|