Skip to content

Commit 797c38e

Browse files
authored
Merge pull request #8 from SAP/CCFenner/cleanup
cleanup
2 parents 901adfa + d2351d7 commit 797c38e

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed
File renamed without changes.

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ branches:
55
language: minimal
66
services:
77
- docker
8-
script: chmod +x runTests.sh && ./runTests.sh
8+
script: cd test/integration/ && chmod +x runTests.sh && ./runTests.sh

Diff for: runTests.sh renamed to test/integration/runTests.sh

+14-5
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,30 @@ set -x
1616
# Start a local registry, to which we push the images built in this test, and from which they will be consumed in the test
1717
docker run -d -p 5000:5000 --restart always --name registry registry:2 || true
1818

19-
docker build -t localhost:5000/ppiper/neo-cli .
20-
docker tag localhost:5000/ppiper/neo-cli ppiper/neo-cli:latest
19+
docker build \
20+
-t localhost:5000/ppiper/neo-cli \
21+
-t ppiper/neo-cli:latest \
22+
"$(pwd)/../.."
2123
docker push localhost:5000/ppiper/neo-cli:latest
2224

2325
git clone https://github.com/piper-validation/cloud-s4-sdk-book -b validate-neo-cli test-project
2426
pushd test-project
2527

26-
docker run -v //var/run/docker.sock:/var/run/docker.sock -v $(pwd):/workspace -v /tmp\
27-
-e CX_INFRA_IT_CF_PASSWORD -e CX_INFRA_IT_CF_USERNAME -e BRANCH_NAME=master \
28-
-e CASC_JENKINS_CONFIG=/workspace/jenkins.yml -e HOST=$(hostname) \
28+
docker run \
29+
-v //var/run/docker.sock:/var/run/docker.sock \
30+
-v "$(pwd):/workspace" \
31+
-v /tmp \
32+
-e CX_INFRA_IT_CF_PASSWORD \
33+
-e CX_INFRA_IT_CF_USERNAME \
34+
-e BRANCH_NAME=master \
35+
-e CASC_JENKINS_CONFIG=/workspace/jenkins.yml \
36+
-e HOST=$(hostname) \
2937
ppiper/jenkinsfile-runner
3038

3139
popd
3240

3341
function cleanup {
3442
rm -rf test-project
43+
docker rm --force registry
3544
}
3645
trap cleanup EXIT

0 commit comments

Comments
 (0)