forked from pixie-io/pixie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (32 loc) · 1013 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: python
python:
- '3.6'
cache:
directories:
- "$HOME/google-cloud-sdk/"
before_install:
- gcloud version || true
- 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
# Add gcloud to $PATH
- source /home/travis/google-cloud-sdk/path.bash.inc
- gcloud version
install:
- pip3 install flake8==3.8.3
- pip3 install pyyaml
- "./scripts/install-latest-px.sh"
script:
# if a PR contains modifications to the px/ folder, check that the README.md has been updated
- "./scripts/compare_readme.sh"
- "./scripts/lint.sh"
- "./scripts/build.sh"
deploy:
- provider: script
script: >-
openssl aes-256-cbc -K $encrypted_3fab9f21603e_key -iv $encrypted_3fab9f21603e_iv
-in gcs-sa.json.enc -out gcs-sa.json -d &&
gcloud auth activate-service-account --key-file gcs-sa.json &&
rm gcs-sa.json &&
./scripts/deploy.sh
skip_cleanup: true
on:
branch: main