1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-20 05:19:40 +02:00

Move files controlling integration tests

Before: files contained inside s4sdk folder
Now: file resides one level higher

Reason: open integration test framework for other use cases,
not related to s4sdk. Idea: teams providing use cases provides
a corrsponding folder which hosts the test cases.
This commit is contained in:
Marcus Holl 2019-02-26 10:59:53 +01:00
parent d60bb9f58c
commit 8543873a12
7 changed files with 19 additions and 7 deletions

View File

@ -0,0 +1,12 @@
#!/bin/bash
WORKSPACE=workspace
[ -e "${WORKSPACE}" ] && rm -rf ${WORKSPACE}
for f in `find . -type f -depth 2 -name '*.yml'`
do
testCase=`basename ${f%.*}`
area=`dirname ${f#*/}`
echo "${area}/${testCase}"
source runTest.sh ${testCase}
done

View File

@ -7,7 +7,7 @@ REPOSITORY_UNDER_TEST=${TRAVIS_REPO_SLUG:-SAP/jenkins-library}
rm -rf workspace
git clone -b "${EXAMPLE_PROJECT_BRANCH}" https://github.com/sap/cloud-s4-sdk-book workspace
cp -f ../jenkins.yml workspace
cp -f jenkins.yml workspace
cd workspace || exit 1
# Configure path to library-repository under test in Jenkins config
@ -21,3 +21,5 @@ git commit --all --author="piper-testing-bot <piper-testing-bot@example.com>" --
docker run -v /var/run/docker.sock:/var/run/docker.sock -v "${PWD}":/workspace -v /tmp -e CASC_JENKINS_CONFIG=/workspace/jenkins.yml \
-e CX_INFRA_IT_CF_USERNAME -e CX_INFRA_IT_CF_PASSWORD -e BRANCH_NAME="${EXAMPLE_PROJECT_BRANCH}" ppiper/jenkinsfile-runner
cd -

View File

@ -1,3 +0,0 @@
#!/bin/bash -e
source ../prepareTests.sh consumer-test

View File

@ -1,3 +0,0 @@
#!/bin/bash -e
source ../prepareTests.sh consumer-test-neo

View File

@ -0,0 +1,2 @@
# Empty for the moment.
# Might contain test configuration in the future.

View File

@ -0,0 +1,2 @@
# Empty for the moment.
# Might contain test configuration in the future.