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

89 lines
1.7 KiB
YAML
Raw Normal View History

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
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
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:
- 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
2018-03-20 11:02:59 +00:00
image: ${CI_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
2018-03-20 11:02:59 +00:00
image: ${CI_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
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
2017-11-26 13:06:30 +00:00
VERSION: 8.1.0
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