File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929env :
3030 global :
31- - PATH=$PATH:$HOME/gcloud/google-cloud-sdk/bin
3231 - GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/client_secrets.json
3332 matrix :
3433 - TEST_DIR=storage
3938 - TEST_DIR=appengine/endpoints
4039
4140before_install :
42- # ENCRYPT YOUR PRIVATE KEY (If you need authentication)
43- # 1. Install and login to the Travis CLI:
44- # $ gem install travis
45- # $ travis login
46- # 2. Move your json private key to client_secrets.json
47- # 3. Run:
48- # $ travis encrypt-file client_secrets.json --add
49- # 4. Commit changes:
50- # $ git add client_secrets.json.enc
51- # $ git commit client_secrets.json.enc .travis.yml
5241- openssl aes-256-cbc -K $encrypted_aeb4e2af7332_key -iv $encrypted_aeb4e2af7332_iv
5342 -in client_secrets.json.enc -out client_secrets.json -d
54- - if [ ! -d $HOME/gcloud/google-cloud-sdk ]; then
55- mkdir -p $HOME/gcloud &&
56- wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz --directory-prefix=$HOME/gcloud &&
57- cd $HOME/gcloud &&
58- tar xzf google-cloud-sdk.tar.gz &&
59- printf '\ny\n\ny\ny\n' | ./google-cloud-sdk/install.sh &&
60- cd $TRAVIS_BUILD_DIR;
61- fi
62- - gcloud -q components update
63- - if [ -a client_secrets.json ]; then
64- gcloud -q auth activate-service-account --key-file client_secrets.json;
65- fi
6643
6744install :
6845- cd $TEST_DIR
You can’t perform that action at this time.
0 commit comments