So in my circle.yml I call mkdir -p test-results/coverage test-results/nose
But when it gets to the step to store artifacts or test results, it can’t find the directory. The workaround I found was to create the directories and transfer them into my image in the Dockerfile with .gitkeep files in them so they will be added to source control.
This seems incorrect, why would it not be able to find the directories when I create them with mkdir? They’re on the same directory as the app and my config for nose and coverage are as follows:
When I create the directory for test-results with .gitkeep locally, it does succeed in saving artifacts and test results, or so it says. But nothing shows up in the summary.
But I’m not sure you can see it since it’s a private organization. The build doesn’t show anything anyway, here’s the output for the save test results and store artifacts steps:
Uploading artifacts00:00
Uploading /app/test-results to test
Uploading /app/test-results/coverage/.gitkeep: SKIPPED, file is empty
Uploading /app/test-results/nose/.gitkeep: SKIPPED, file is empty
Uploading test results00:00
As you can see, the .gitkeep files are in the directories because mkdir doesn’t seem to work to create them. I had to add them to source control and put .gitkeep files in to get them to show up otherwise it tells me it can’t find the directories. Even when I have the command mkdir -p test-results/coverage test-results/nose above these steps.
Archiving the following test results
* /app/test-results
It looks like nothing is in those folders to be saved:
Uploading /app/test-results to tr1
Uploading /app/test-results/coverage/.gitkeep: SKIPPED, file is empty
Uploading /app/test-results/nose/.gitkeep: SKIPPED, file is empty
The only files it’s finding are the .gitkeep files – are the files being saved by the test-runner there to be uploaded? Could you try logging in with SSH and running a find command to verify where the files are being saved?