Added gitlab runner config for CentOS 7

This commit is contained in:
Deon George 2016-06-23 22:04:57 +10:00
parent cd32b8816c
commit a45df79e27
3 changed files with 43 additions and 11 deletions

View File

@ -1,27 +1,57 @@
# Compile on CentOS 6.x, for some reason compiling on CentOS 7.x results in buffer corruption
stages:
- build
- test
cache:
untracked: true
test:6-7.1:build:
# Compile on CentOS 6.x, for some reason compiling on CentOS 7.x results in buffer corruption
build:6-7.1:
stage: build
image: leenooks/ci-tsm:6-7.1
script:
- make -f Makefile.linux64
only:
- master
- test
tags:
- C
artifacts:
name: "$CI_BUILD_NAME"
paths:
- tsmpipe
test:6-7.1:test:
test:6-7.1:
stage: test
image: leenooks/ci-tsm:6-7.1
dependencies:
- build:6-7.1
script:
- cd test && ./test.sh
only:
- master
- test
tags:
- C
# Compile on CentOS 6.x, for some reason compiling on CentOS 7.x results in buffer corruption
build:7-7.1:
stage: build
image: leenooks/ci-tsm:7-7.1
script:
- make -f Makefile.linux64
only:
- test
tags:
- C
artifacts:
name: "$CI_BUILD_NAME"
paths:
- tsmpipe
test:7-7.1:
stage: test
image: leenooks/ci-tsm:7-7.1
dependencies:
- build:7-7.1
script:
- cd test && ./test.sh
only:
- test
tags:
- C

0
test/dsm.opt Normal file
View File

View File

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/sh
set -e
FILE=random.1m
# Create TEST File
@ -11,6 +12,7 @@ echo "MD5 of [${FILE}] is [${MD5}] (${SIZE})"
ln -s /opt/tivoli/tsm/client/api/bin64/EN_US
export DSMI_DIR=./
export DSMI_CONFIG=dsm.opt
# Send file to TSM
echo "+ TEST SEND FILE!"
@ -31,11 +33,11 @@ RETRIEVE=$(md5sum ${FILE}.back | awk '{print $1}')
if [ "${MD5}" != "${RETRIEVE}" ]; then
exit 1
else
echo "+ RETRIEVE VALID!"
echo "+ RETRIEVE VALID (${RETRIEVE})!"
fi
# Delete it
echo "+ TEST DELETE!"
./${TSMPIPE} -Bds /test -f ${FILE} -vvv -O"-VIRTUALNODENAME=TEST -PASSWORD=TEST"
${TSMPIPE} -Bds /test -f ${FILE} -vvv -O"-VIRTUALNODENAME=TEST -PASSWORD=TEST"
rm -f EN_US ${FILE} ${FILE}.back