2017-11-26 13:06:30 +00:00
|
|
|
services:
|
2018-03-20 11:02:59 +00:00
|
|
|
- ${CI_REGISTRY}/leenooks/ci-docker:dind
|
2017-11-29 04:32:04 +00:00
|
|
|
|
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
|
2018-03-20 11:02:59 +00:00
|
|
|
image: ${CI_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
|
2018-03-20 11:02:59 +00:00
|
|
|
image: ${CI_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
|
2018-03-20 11:02:59 +00:00
|
|
|
image: ${CI_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
|
2018-03-20 11:02:59 +00:00
|
|
|
image: ${CI_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
|
2018-03-20 11:02:59 +00:00
|
|
|
- echo "$CI_JOB_TOKEN" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
|
2017-11-26 13:06:30 +00:00
|
|
|
variables:
|
2018-03-20 11:02:59 +00:00
|
|
|
CACHETAG: build
|
2018-03-21 06:08:19 +00:00
|
|
|
VERSION: 8.1.4
|
2018-03-21 05:59:17 +00:00
|
|
|
DOCKER_HOST: tcp://${CI_REGISTRY}-leenooks-ci-docker:2375
|
2017-11-26 13:06:30 +00:00
|
|
|
dependencies:
|
|
|
|
- test:7-8.1
|
|
|
|
script:
|
2018-03-20 11:02:59 +00:00
|
|
|
- if [ -f init ]; then chmod 500 init; fi
|
|
|
|
- docker pull ${CI_REGISTRY_IMAGE}:${CACHETAG} || true
|
|
|
|
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
|
|
|
|
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
|
|
|
|
- docker push ${CI_REGISTRY_IMAGE}:${CACHETAG}
|
2017-11-26 13:06:30 +00:00
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
only:
|
|
|
|
- master
|