johnluetke / WeatherAPI

Abstracts online weather services into a simple API
Apache License 2.0
14 stars 4 forks source link

Figure out how to include PGP_PASSWORD and PGP_SECRET_KEY in Travis build #7

Closed johnluetke closed 10 years ago

alexanderdean commented 10 years ago

Sorry I'm probably being dense - why do you need PGP_PASSWORD and PGP_SECRET_KEY in Travis build?

alexanderdean commented 10 years ago

Is it to bundle API keys? You can do that similar to how we did it in Scala Forex (which uses a secret key from the Open Exchange Rates API):

https://github.com/snowplow/scala-forex/blob/master/.travis.yml

alexanderdean commented 10 years ago

This is the answer that explains how to do it:

http://stackoverflow.com/questions/9338428/using-secret-api-keys-on-travis-ci

alexanderdean commented 10 years ago

Ah I get it, it's for Sonatype signing...

alexanderdean commented 10 years ago

This is the blog post you need:

https://coderwall.com/p/9b_lfq

alexanderdean commented 10 years ago

Can you let me know if this works @johnluetke ?

johnluetke commented 10 years ago

I have this part done. Sonatype OSS requires artifacts to be signed. In order to have that occur, Travis needs the private GPG key and passphrase

alexanderdean commented 10 years ago

Yep, that blog post shows you how