-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from tintinnabulate/travis_encrypt
Encrypt fanjoula.json, decrypt on Travis CI #36 This patch allows the client secret for the live staging website (Google Cloud Platform) to be accessed by Travis CI for real end-to-end integration testing of the datastore. We do this by encrypting the client secret, adding to GitHub, and decrypting it on Travis CI. Thanks goes to this tutorial: https://dev.to/mmphego/how-to-encrypt-multiple-files-with-travis-ci-5a15 .gitignore Update to ignore unencrypted client secret .travis.yml Decrypt client secret, untar (Autogenerated with ruby gem travis) fanjoula.json Revoke this client secret for live staging site secrets.tar.enc Add client secret
- Loading branch information
Showing
4 changed files
with
16 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
language: go | ||
|
||
go: | ||
- 1.12.x | ||
|
||
- 1.12.x | ||
env: | ||
- GO111MODULE=on | ||
|
||
- GO111MODULE=on | ||
before_install: | ||
- openssl aes-256-cbc -K $encrypted_3b9f0b9d36d1_key -iv $encrypted_3b9f0b9d36d1_iv | ||
-in secrets.tar.enc -out secrets.tar -d | ||
- tar xvf secrets.tar | ||
install: | ||
- mkdir /tmp/sdk | ||
- curl -o /tmp/sdk.tar.gz "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-258.0.0-linux-x86_64.tar.gz" | ||
- tar xzf /tmp/sdk.tar.gz -C /tmp/sdk | ||
- export PATH="$PATH:/tmp/sdk/bin" | ||
- go mod download | ||
|
||
- mkdir /tmp/sdk | ||
- curl -o /tmp/sdk.tar.gz "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-258.0.0-linux-x86_64.tar.gz" | ||
- tar xzf /tmp/sdk.tar.gz -C /tmp/sdk | ||
- export PATH="$PATH:/tmp/sdk/bin" | ||
- go mod download | ||
script: | ||
- make test | ||
- make test |
This file was deleted.
Oops, something went wrong.
Binary file not shown.