You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 24, 2022. It is now read-only.
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 travis encrypt to encrypt NPM's email and api_key fields (after getting a token from https://npmjs.com, simply replace all secure: TODO by secure: theoutputoftravisencrypt) (split out into Auto-deploy to NPM using Travis CI #32)
TODO for S3:
same for S3's access_key_id and secret_access_key credentials (might have to ask security first though)
figure out how to configure the other S3 options/commands in deploy.sh:
maybe an addition: can we make sure that deployment only happens if all tests succeed?
By default, Travis CI runs npm test (i.e. node test.js) first, and only deploys if the first step succeeds. Additionally, I've also set it up to only try to deploy new Git tags, instead of every commit, so you have to manually npm version patch && git push --tags origin master to even attempt a release, and then node test.js needs to succeed for it to work.
We could confirm that assumption by purposefully breaking the tests and trying to deploy. I can help with that if you'd like.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
3 participants
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