File: travis_process_gbq_encryption.sh

package info (click to toggle)
pandas 1.1.5%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 47,284 kB
  • sloc: python: 292,793; ansic: 8,591; sh: 608; makefile: 94
file content (13 lines) | stat: -rwxr-xr-x 410 bytes parent folder | download
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-gbq-tests';
    echo 'Successfully decrypted gbq credentials'
fi