Added gitlab runner config for CentOS 7
This commit is contained in:
parent
cd32b8816c
commit
a45df79e27
@ -1,27 +1,57 @@
|
|||||||
# Compile on CentOS 6.x, for some reason compiling on CentOS 7.x results in buffer corruption
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
|
||||||
cache:
|
# Compile on CentOS 6.x, for some reason compiling on CentOS 7.x results in buffer corruption
|
||||||
untracked: true
|
build:6-7.1:
|
||||||
|
|
||||||
test:6-7.1:build:
|
|
||||||
stage: build
|
stage: build
|
||||||
image: leenooks/ci-tsm:6-7.1
|
image: leenooks/ci-tsm:6-7.1
|
||||||
script:
|
script:
|
||||||
- make -f Makefile.linux64
|
- make -f Makefile.linux64
|
||||||
only:
|
only:
|
||||||
- master
|
- test
|
||||||
tags:
|
tags:
|
||||||
- C
|
- C
|
||||||
|
artifacts:
|
||||||
|
name: "$CI_BUILD_NAME"
|
||||||
|
paths:
|
||||||
|
- tsmpipe
|
||||||
|
|
||||||
test:6-7.1:test:
|
test:6-7.1:
|
||||||
stage: test
|
stage: test
|
||||||
image: leenooks/ci-tsm:6-7.1
|
image: leenooks/ci-tsm:6-7.1
|
||||||
|
dependencies:
|
||||||
|
- build:6-7.1
|
||||||
script:
|
script:
|
||||||
- cd test && ./test.sh
|
- cd test && ./test.sh
|
||||||
only:
|
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:
|
tags:
|
||||||
- C
|
- C
|
||||||
|
0
test/dsm.opt
Normal file
0
test/dsm.opt
Normal file
@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
FILE=random.1m
|
FILE=random.1m
|
||||||
|
|
||||||
# Create TEST File
|
# Create TEST File
|
||||||
@ -11,6 +12,7 @@ echo "MD5 of [${FILE}] is [${MD5}] (${SIZE})"
|
|||||||
|
|
||||||
ln -s /opt/tivoli/tsm/client/api/bin64/EN_US
|
ln -s /opt/tivoli/tsm/client/api/bin64/EN_US
|
||||||
export DSMI_DIR=./
|
export DSMI_DIR=./
|
||||||
|
export DSMI_CONFIG=dsm.opt
|
||||||
|
|
||||||
# Send file to TSM
|
# Send file to TSM
|
||||||
echo "+ TEST SEND FILE!"
|
echo "+ TEST SEND FILE!"
|
||||||
@ -31,11 +33,11 @@ RETRIEVE=$(md5sum ${FILE}.back | awk '{print $1}')
|
|||||||
if [ "${MD5}" != "${RETRIEVE}" ]; then
|
if [ "${MD5}" != "${RETRIEVE}" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "+ RETRIEVE VALID!"
|
echo "+ RETRIEVE VALID (${RETRIEVE})!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Delete it
|
# Delete it
|
||||||
echo "+ TEST DELETE!"
|
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
|
rm -f EN_US ${FILE} ${FILE}.back
|
||||||
|
Reference in New Issue
Block a user