This repository was archived by the owner on Jun 24, 2022. It is now read-only.
[WIP] Auto-deploy to NPM and S3 using Travis CI #31
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a follow-up to #30. As discussed in #30 (comment), we'd like to automate the deployments to NPM and S3.
This commit is a work-in-progress Travis CI configuration to achieve this.
TODO for NPM:use(split out into Auto-deploy to NPM using Travis CI #32)travis encryptto encrypt NPM'semailandapi_keyfields (after getting a token from https://npmjs.com, simply replace allsecure: TODObysecure: theoutputoftravisencrypt)TODO for S3:
access_key_idandsecret_access_keycredentials (might have to ask security first though)deploy.sh:--profile code.cdn.mozilla.nets3 cp--acl public-read--cache-control max-age=86400--content-type application/jsondevices.jsons3://code-origin-cdn-mozilla-net/devices/devices.json