dataverse-client-python
dataverse-client-python copied to clipboard
Set up Travis for Continuous integration
It would be nice to set up Travis CI for continuous integration. The only problem with this is that an API key is required to run the tests - however, Travis has a mechanism for storing environment variables securely, so we could use that. But then the downside is that every time the test server is wiped, the API key would need to change. To resolve this, I think it would be necessary to have another test server that exists solely for the purpose of running the tests and which is never wiped?
I can provide advice on setting up Travis, if needed.
Related: #10.
But then the downside is that every time the test server is wiped, the API key would need to change.
I would suggest creating (and deleting) a user for every test run. That's what I do at https://github.com/IQSS/dataverse/blob/master/src/test/java/edu/harvard/iq/dataverse/api/SearchIT.java
See also this comment I just made: https://github.com/IQSS/dataverse-client-python/issues/10#issuecomment-99127268