This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
tsmpipe/.gitlab-ci.yml

91 lines
1.7 KiB
YAML
Raw Normal View History

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
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
artifacts:
name: "$CI_BUILD_NAME"
paths:
- tsmpipe
2016-06-23 11:29:18 +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
dependencies:
- build:6-7.1
script:
- cd test && ./test.sh
only:
2017-11-26 13:06:30 +00:00
- c6
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:
stage: build
2017-11-29 04:32:04 +00:00
image: ${DOCKER_REGISTRY}/leenooks/ci-tsm:7-8.1
script:
- make -f Makefile.linux64
only:
- master
tags:
- C
artifacts:
name: "$CI_BUILD_NAME"
paths:
- tsmpipe
2017-11-26 13:06:30 +00:00
test:7-8.1:
stage: test
2017-11-29 04:32:04 +00:00
image: ${DOCKER_REGISTRY}/leenooks/ci-tsm:7-8.1
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:
- master
2016-06-23 11:29:18 +00:00
tags:
- C
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:
- 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