Skip to content

Commit 8c9ff4d

Browse files
committed
adding basic run test - we cant actually test conversion because connecting to daemon on circle unlikely
1 parent c4dd0de commit 8c9ff4d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.circleci/config.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ defaults: &defaults
2020
working_directory: /tmp/src
2121
environment:
2222
- CONTAINER_NAME: singularityware/docker2singularity
23+
- TESTING_CONTAINER: vanessa/salad
2324

2425
# Installation
2526

@@ -74,6 +75,18 @@ dockerbuild: &dockerbuild
7475
DOCKER_TAG="v$(cat VERSION)"
7576
docker build -t ${CONTAINER_NAME}:${DOCKER_TAG} .
7677
78+
test: &test
79+
name: Test using docker2singularity
80+
command: |
81+
echo "Testing docker2singularity with ${TESTING_CONTAINER}"
82+
docker pull "${TESTING_CONTAINER}"
83+
echo "docker pull ${TESTING_CONTAINER}"
84+
DOCKER_TAG="v$(cat VERSION)"
85+
echo "1. Testing run without arguments..."
86+
echo "docker run ${CONTAINER_NAME}:${DOCKER_TAG}"
87+
docker run "${CONTAINER_NAME}:${DOCKER_TAG}"
88+
echo "Return value $?"
89+
7790
################################################################################
7891
# Jobs
7992
################################################################################
@@ -96,6 +109,7 @@ jobs:
96109
- run: *install
97110
- run: *dockerload
98111
- run: *dockerbuild
112+
- run: *test
99113
- run: *dockersave
100114
- persist_to_workspace:
101115
root: /tmp
@@ -130,7 +144,7 @@ jobs:
130144

131145
workflows:
132146
version: 2
133-
build_deploy:
147+
build_test_deploy:
134148
jobs:
135149
- build:
136150
filters:

0 commit comments

Comments
 (0)