2017-11-26 13:06:30 +00:00
|
|
|
services:
|
|
|
|
- ${DOCKER_REGISTRY}/leenooks/ci-docker:dind
|
|
|
|
|
2017-11-29 04:32:04 +00:00
|
|
|
variables:
|
|
|
|
DOCKER_REGISTRY: registry.leenooks.net
|
|
|
|
|
2016-06-23 11:29:18 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
2017-11-26 13:06:30 +00:00
|
|
|
- docker
|
2016-06-23 11:29:18 +00:00
|
|
|
|
2017-11-26 13:06:30 +00:00
|
|
|
# For some reason compiling on CentOS 6.x results in buffer corruption
|
2016-06-23 12:04:57 +00:00
|
|
|
build:6-7.1:
|
2016-06-23 11:29:18 +00:00
|
|
|
stage: build
|
2017-11-29 04:32:04 +00:00
|
|
|
image: ${DOCKER_REGISTRY}/leenooks/ci-tsm:6-7.1
|
2016-06-23 05:36:09 +00:00
|
|
|
script:
|
|
|
|
- make -f Makefile.linux64
|
|
|
|
only:
|
2017-11-26 13:06:30 +00:00
|
|
|
- c6
|
2016-06-23 05:36:09 +00:00
|
|
|
tags:
|
|
|
|
- C
|
2016-06-23 12:04:57 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_BUILD_NAME"
|
|
|
|
paths:
|
|
|
|
- tsmpipe
|
2016-06-23 11:29:18 +00:00
|
|
|
|
2016-06-23 12:04:57 +00:00
|
|
|
test:6-7.1:
|
2016-06-23 11:29:18 +00:00
|
|
|
stage: test
|
2017-11-29 04:32:04 +00:00
|
|
|
image: ${DOCKER_REGISTRY}/leenooks/ci-tsm:6-7.1
|
2016-06-23 12:04:57 +00:00
|
|
|
dependencies:
|
|
|
|
- build:6-7.1
|
|
|
|
script:
|
|
|
|
- cd test && ./test.sh
|
|
|
|
only:
|
2017-11-26 13:06:30 +00:00
|
|
|
- c6
|
2016-06-23 12:04:57 +00:00
|
|
|
tags:
|
|
|
|
- C
|
|
|
|
|
|
|
|
# Compile on CentOS 6.x, for some reason compiling on CentOS 7.x results in buffer corruption
|
2017-11-26 13:06:30 +00:00
|
|
|
build:7-8.1:
|
2016-06-23 12:04:57 +00:00
|
|
|
stage: build
|
2017-11-29 04:32:04 +00:00
|
|
|
image: ${DOCKER_REGISTRY}/leenooks/ci-tsm:7-8.1
|
2016-06-23 12:04:57 +00:00
|
|
|
script:
|
|
|
|
- make -f Makefile.linux64
|
|
|
|
only:
|
2016-06-23 12:43:33 +00:00
|
|
|
- master
|
2016-06-23 12:04:57 +00:00
|
|
|
tags:
|
|
|
|
- C
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_BUILD_NAME"
|
|
|
|
paths:
|
|
|
|
- tsmpipe
|
|
|
|
|
2017-11-26 13:06:30 +00:00
|
|
|
test:7-8.1:
|
2016-06-23 12:04:57 +00:00
|
|
|
stage: test
|
2017-11-29 04:32:04 +00:00
|
|
|
image: ${DOCKER_REGISTRY}/leenooks/ci-tsm:7-8.1
|
2016-06-23 12:04:57 +00:00
|
|
|
dependencies:
|
2017-11-26 13:06:30 +00:00
|
|
|
- build:7-8.1
|
2016-06-23 11:29:18 +00:00
|
|
|
script:
|
|
|
|
- cd test && ./test.sh
|
|
|
|
only:
|
2016-06-23 12:42:43 +00:00
|
|
|
- master
|
2016-06-23 11:29:18 +00:00
|
|
|
tags:
|
|
|
|
- C
|
2017-11-29 04:41:09 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_BUILD_NAME"
|
|
|
|
paths:
|
|
|
|
- tsmpipe
|
2017-11-26 13:06:30 +00:00
|
|
|
|
|
|
|
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_HOST: tcp://${DOCKER_REGISTRY}-leenooks-ci-docker:2375
|
|
|
|
dependencies:
|
|
|
|
- test:7-8.1
|
|
|
|
script:
|
2017-11-29 06:24:05 +00:00
|
|
|
- docker pull ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION} || true
|
|
|
|
- docker build --cache-from ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION} -t ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION} .
|
2017-11-26 13:06:30 +00:00
|
|
|
- docker push ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION}
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
only:
|
|
|
|
- master
|