How to fasten the unit tests in networks-ci?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
Networks-CI collects Bild, built on Docker containers. But you need to add run unit tests. I.e. go into the container, run unit tests and, depending on the results, either stop the build or to continue. How to determine the ID of the container in order to get into it?
by | 15 views

1 Answer

0 like 0 dislike
What's stopping You to create a test image, after successful tests this image to upload in prod version?!
For example a piece of pipe:
Step 3: stage: build only: - "master" script: - docker pull $IMAGE:${VERSION}_test - docker tag $IMAGE:${VERSION}_test $IMAGE:latest - docker tag $IMAGE:${VERSION}_test $IMAGE:$VERSION - docker push $IMAGE:latest - docker push $IMAGE:$VERSION tags: [build]

Related questions

110,608 questions
257,187 answers
40,796 users