-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continuous Integration (travis) #3
Comments
Will look into it and fix. Travis CI can be a real pain to get right. Although In general I feel we should go through So I my idea would be to only use Any .netrc or .*rc file in general is a huge security risk (most people forget to set them to user readable only). Using those files shouldn't be encouraged imho, preferring an encrypted keyring instead. However, for those used to the setup the translation function might smooth out the transition to a keyring. Doing so would also simplify the internal workings of dependent functions (and unit checks) as you don't need to go past two functions only one! |
After thinking about it I agree with you. It was just convenient for myself and I am the guy not using any key-manager but having some encrypted ASCII files with account information :). I think it will be enough to remove the In this case the |
only relying on keyring now... |
Nod really an issue, more a note which might have to be discussed/require adjustments. Had to change some settings regarding travis CI:
*_set_key
,*_get_key
To be able to test the set and get key (
keyring
) I am currently exporting four global variables on travis-ci (ECMWFAPIEMAIL
,ECMWFAPIKEY
,CDSAPIUSER
, andCDSAPIKEY
). This allows to load the login details viaSys.getenv(...)
within the test scripts, works nicely, but might not be your preferred way. An alternative would be to add encoded variables in the.travis.yml
file. The way it is implemented right now allows that different travis CI checks (different users) can use different user accounts (might not be required in the future).*_key_from_file
One of the extensions is that
~/.ecmwfapirc
and~/.cdsapirc
files can be used (as for pythonecmwfapi
/cdsapi
). To be able to run the checks I do have to create them ontravis-ci
. Thus,.travis.yml
calls thecreate_apirc
(https://github.com/retostauffer/ecmwfr/commit/098ffc964b2e0120efd4aded9d5613b177d96997) script (see travis.yml line 14). If on travis-ci the local files will be created based on the global variables (see above).Works fairly ok, but I do not have too much experience with CI so far.
The text was updated successfully, but these errors were encountered: