File: travis_process_gbq_encryption.sh

package info (click to toggle)
pandas 0.23.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 167,704 kB
  • sloc: python: 230,826; ansic: 11,317; sh: 682; makefile: 133
file content (13 lines) | stat: -rwxr-xr-x 407 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

source ci/travis_gbq_config.txt

if [[ -n ${SERVICE_ACCOUNT_KEY} ]]; then
    echo "${SERVICE_ACCOUNT_KEY}" > ci/travis_gbq.json;
elif [[ -n ${!TRAVIS_IV_ENV} ]]; then
    openssl aes-256-cbc -K ${!TRAVIS_KEY_ENV} -iv ${!TRAVIS_IV_ENV} \
    -in ci/travis_gbq.json.enc -out ci/travis_gbq.json -d;
    export GBQ_PROJECT_ID='pandas-travis';
    echo 'Successfully decrypted gbq credentials'
fi