Hello.
How to take the committed file information on the testing?
I have tried to execute shell command “find -mmin -1” at ‘override’ in test section ‘circle.yml’.
So I realized All files in the repository had been updated.
My test have to run only the occasion(s) to build the repository.
Is there way to enumerate the committed files by shell command?
find -mmin -1 will show all files because the entire repository is checked out at the beginning of the build. Git is what contains the information on what is changing for your project. The following command would give you a newline separated list of each file involved in the last commit (HEAD) in the build:
However, that seems to work locally in one’s own local repo version of target repo, when you substitute in the actual URL or save to similar env variable.
In CircleCI (version 1.0), it didn’t appear to work in that it returns an empty list, whereas the diff command given by FelicianoTech does return output, but only for last commit I believe. The URL does have a value itself.
Where is the doc describing CIRCLE_COMPARE_URL by the way?