Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment script improve #5

Merged
merged 12 commits into from
Oct 30, 2018
Prev Previous commit
Next Next commit
Update travis-ci
  • Loading branch information
Hitamashi committed Oct 17, 2018
commit 386acbec7bcb9fcfaf793cf16f5589ad379a3cee
19 changes: 7 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
sudo: false

language: python
python:
- "2.7"

- '2.7'
install:
- pip install -r requirements.txt -t lib

- pip install -r requirements.txt -t lib
script:
- echo 'Skipping test'

# Cache Gcloud SDK between commands
- echo 'Skipping test'
cache:
yarn: true
pip: true
directories:
- "$HOME/google-cloud-sdk/"
- lib

before_deploy:
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash; fi
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export
CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash; fi
- source /home/travis/google-cloud-sdk/path.bash.inc
- gcloud --quiet version
- gcloud --quiet components update
Expand All @@ -28,11 +23,11 @@ before_deploy:
- gcloud auth activate-service-account --key-file gcp-secret.json
- gcloud config set project $GCP_PROJECT
- pip install -r requirements.txt -t lib

deploy:
provider: script
skip_cleanup: true
script:
- bash deploy.sh $GCP_PROJECT
- bash deploy.sh $GCP_PROJECT
on:
all_branches: true

Binary file modified gcp-secret.json.enc
Binary file not shown.