Skip to content

Commit

Permalink
[WIP] Add Google Cloud Storage credentials to .travis.yml (closes #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenFradet committed Nov 2, 2018
1 parent 7320542 commit e448937
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
17 changes: 9 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
language: scala
services:
- docker
- docker
scala:
- 2.11.12
- 2.11.12
jdk:
- oraclejdk8
- oraclejdk8
before_install:
- openssl aes-256-cbc -K $encrypted_a1a0961ea86f_key -iv $encrypted_a1a0961ea86f_iv -in service-account.json.enc -out ${HOME}/service-account.json -d
script:
- sbt test
- sbt test
before_deploy:
- pip install --user release-manager==0.3.0
- pip install --user release-manager==0.3.0
deploy:
- provider: script
skip_cleanup: true
script: ./.travis/deploy_template.sh $TRAVIS_TAG
script: "./.travis/deploy_template.sh $TRAVIS_TAG"
on:
tags: true
- provider: script
Expand All @@ -22,7 +24,7 @@ deploy:
tags: true
- provider: script
skip_cleanup: true
script: ./.travis/deploy_docker.sh $TRAVIS_TAG
script: "./.travis/deploy_docker.sh $TRAVIS_TAG"
on:
tags: true
env:
Expand All @@ -31,4 +33,3 @@ global:
- BINTRAY_SNOWPLOW_GENERIC_API_KEY
- BINTRAY_SNOWPLOW_DOCKER_USER
- BINTRAY_SNOWPLOW_DOCKER_API_KEY
- GCP_CREDENTIALS
4 changes: 1 addition & 3 deletions .travis/deploy_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

tag=$1

GOOGLE_APPLICATION_CREDENTIALS="${HOME}/credentials.json"
echo ${GCP_CREDENTIALS} > ${GOOGLE_APPLICATION_CREDENTIALS}
export GOOGLE_APPLICATION_CREDENTIALS
export GOOGLE_APPLICATION_CREDENTIALS="${HOME}/service-account.json"

cd ${TRAVIS_BUILD_DIR}

Expand Down
Binary file added service-account.json.enc
Binary file not shown.

0 comments on commit e448937

Please sign in to comment.