-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
44 lines (38 loc) · 1.74 KB
/
.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
37
38
39
40
41
42
43
44
language: php
php: 7.3.2
os: linux
git:
lfs_skip_smudge: true
notifications:
slack:
secure: h32IXHBv+iTTHQeofF9V+R/Gld8eZFSIJeilSegrsa6Mmb6WMIitoyfDLhUZmTS9fUfcj0SNHc4l3vddK6pZRDbu/1vUVgf3BywfXTw+du5Wk5lHjNdiAFrya2EZQsqFqEBKaxkXnIBQY/OEo3H70prX0Bc+Irf5u7eMbBJuESnwmlGjmmqct2P/A+SqrAC0vVnXflgke4Ek1s6go57bsjsd2mMr8wDLqdNPWYq2cT4JxsARKmfm6CzEIk2G/A/0ZQ8IOnLQIna/enjJht614VHyDiZm19Vh98kINDJoCqEnysLGuZocyW6XFgYodaF3B3g99Bul9X64NdgksfvTXUFj+y9N7PdLXi5Zo5oVtB5mq5knHU2YQrmfYSNgN2GjWOH2Q2NqX/b8ZH/p94sB61epcjlsj7QRuRScXrCKP32acvwENa2G+PixO/GV3wG0Yhf/Ow0CgW/DlvRSwKVobXG+B1taNsJUm9OeP2fpKn9CDMd2NrRPJLlyncVarY9rTQZxVV8G4ZBkiEcierl49z5phYx7yzpUdxoWKMns8/0TQOg0r+cDK/uCR9AOgdkJH70h/M27rnMtzLoiDFs5WQ1zam/T3B14MdpW2/fvmHf0NJnlVeWK4+l4ZH+0n4qGzaTqdFfVKW3bIfjjhCUjqhS9nu6smA4QQizJy/TpWtU=
on_success: change
on_failure: always
tags: true
branches:
only:
- master
- /^v[0-9]+\.[0-9]+\.[0-9]+/
services:
- docker
script: bash scripts/runCIDocker.sh
# uncomment to add auto deployment to travis
# env:
# global:
# - CLOUDSDK_CORE_DISABLE_PROMPTS=1
# cache:
# directories:
# - $HOME/google-cloud-sdk
# before_deploy:
# - if [ ! -d $HOME/google-cloud-sdk/bin ]; then
# rm -rf $HOME/google-cloud-sdk;
# curl https://sdk.cloud.google.com | bash > /dev/null;
# fi
# - source $HOME/google-cloud-sdk/path.bash.inc
# - gcloud version
## add decryption command encrypted-deploy-key to deploy-key.json, the encryption should be done using travis-ci-cli tool
# deploy:
# skip_cleanup: true
# provider: script
## fill env variables with vm details
# script: env PROJECT_ID='<your gcloud project id>' COMPUTE_ZONE='<gcloud compute zone>' VM_INSTANCE='<userName>@<vmName>' BRANCH=master ./scripts/deploy.sh "./scripts/deploy-key.json"