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

96 lines
1.8 KiB
YAML
Raw Normal View History

2016-06-23 11:29:18 +00:00
stages:
2019-05-06 20:40:00 +00:00
- build
- test
- 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
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:
2019-05-06 20:40:00 +00:00
- make -f Makefile.linux64
2016-06-23 05:36:09 +00:00
only:
2019-05-06 20:40:00 +00:00
- c6
2016-06-23 05:36:09 +00:00
tags:
2019-05-06 20:40:00 +00:00
- C
- x86_64
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
2018-03-20 11:02:59 +00:00
image: ${CI_REGISTRY}/leenooks/ci-tsm:6-7.1
dependencies:
2019-05-06 20:40:00 +00:00
- build:6-7.1
script:
2019-05-06 20:40:00 +00:00
- cd test && ./test.sh
only:
2019-05-06 20:40:00 +00:00
- c6
tags:
2019-05-06 20:40:00 +00:00
- C
- x86_64
# 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
2018-03-20 11:02:59 +00:00
image: ${CI_REGISTRY}/leenooks/ci-tsm:7-8.1
script:
2019-05-06 20:40:00 +00:00
- make -f Makefile.linux64
only:
2019-05-06 20:40:00 +00:00
- master
tags:
2019-05-06 20:40:00 +00:00
- C
- x86_64
artifacts:
name: "$CI_BUILD_NAME"
paths:
- tsmpipe
2017-11-26 13:06:30 +00:00
test:7-8.1:
stage: test
2018-03-20 11:02:59 +00:00
image: ${CI_REGISTRY}/leenooks/ci-tsm:7-8.1
dependencies:
2019-05-06 20:40:00 +00:00
- build:7-8.1
2016-06-23 11:29:18 +00:00
script:
2019-05-06 20:40:00 +00:00
- cd test && ./test.sh
2016-06-23 11:29:18 +00:00
only:
2019-05-06 20:40:00 +00:00
- master
2016-06-23 11:29:18 +00:00
tags:
2019-05-06 20:40:00 +00:00
- C
- x86_64
artifacts:
name: "$CI_BUILD_NAME"
paths:
- tsmpipe
2017-11-26 13:06:30 +00:00
docker:7-8.1:
stage: docker
image: docker:latest
2019-05-06 20:40:00 +00:00
services:
- docker:dind
2017-11-26 13:06:30 +00:00
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
2019-05-06 20:40:00 +00:00
VERSION: 8.1.7
DOCKER_HOST: tcp://docker:2375
2017-11-26 13:06:30 +00:00
dependencies:
2019-05-06 20:40:00 +00:00
- test:7-8.1
2017-11-26 13:06:30 +00:00
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} .
2018-03-21 11:16:28 +00:00
- docker run ${CI_REGISTRY_IMAGE}:${VERSION} -h
2018-03-20 11:02:59 +00:00
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
- docker push ${CI_REGISTRY_IMAGE}:${CACHETAG}
2017-11-26 13:06:30 +00:00
tags:
- docker
2019-05-06 20:40:00 +00:00
- x86_64
2017-11-26 13:06:30 +00:00
only:
- master