I’m learning how to write modules that I’d like to eventually submit to this repo. In the meantime, I’m working on it from my fork. I’m writing unit tests alongside my module under the test directory and would like for these tests to run in Travis. I tried adding the following lines to the bottom of the script
section of .travis.yml
- pip install -r test-requirements.txt
- py.test --random -v test
However, the build fails because the the environment is not setup properly: https://travis-ci.org/relaxdiego/ansible-modules-core/builds/136561867
I’m about to try other stuff to make this work but was also wondering if I just missed some developer documentation somewhere which is why I’m filing this ticket. Is there a best practice for running my unit tests with the build?