-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
52 lines (43 loc) · 3.72 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
45
46
47
48
49
50
51
52
language: go
go:
- 1.12
env:
global:
- GO111MODULE=on go mod download
- SERVER_SRC_DIR=$TRAVIS_BUILD_DIR/server
- WEB_SRC_DIR=$TRAVIS_BUILD_DIR/web
# travis encrypt GCP_PROJECT_ID=xxx
- secure: "Wy6lWLgp0CxAJFsJvYBW7IASbS3F3QGEpsa4hIYzn2calxw/U3LsOFeWayY8uVtmEpFOojvgymqaUW3EEBj+P+mdzUm7L4OABZZZdJO106vG34hVzApBSpuJpOKORRP9WyAgkIq8AfL6hfhx+VHvFTXDMIBpyamJg6A/8Hm4IkjBvDjUhflKPztpY5EP6fGrDbBePWBu1QU+Vq+bIILqXWgHX0fOd+xb4rJT0xc53RYpCKNqXxysnW8lggJ5UiWHE5cQIk8VEO6fmUr92tJdf3FCdDRDCthhJ5qhdTMaVaQhCRTi8rlsbrS5Qx2EwJTt0og+Omwr4cUI3UDM5UcDpwMXXnnlIg8jJIFK4LTEXXWP+PPCibPkAZNeR+7iaTLaeREVhlUeHQZl60pR5N0z4Fel+LjRqDssOeHs6L8iXvAk6ujyh4pXyEMvgtEEqtCLgDbmrJcnFNsL8S8u/Pkb4cKIxkhqgstxZfO0aEdcGPG/uAY5wNrsNYay/Wn/3mUFbTJolnOohkXzoAJQIlznJv4pdO5NuGFj56sHXiql8tt9fR3Il9CzA47CcO8kupqvme7yTtr6GCOu1adVP3MosE7g0eEzI9xHiGmjCNaSAj+W1MIa585DltHjs/RhuTASZyU7HUqnxdTTCnoRz6Kl4RSkkJoiO7a94VrL0t0WJR0="
# travis encrypt GCP_REGION=xxx
- secure: "Ittua17rE3qwsqtd3QdKexUnB5xsW5JUwBtwEri5Uwag0KU0yG/CoXaDsc2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0q3QpojdH4aCiVGCKQ+0LaBVtx92BsgJyassGbTj6P9uCIG6G8N0r8xbXz6Y0Kmlp4Dzxj7uu4sXrLq3X336g4O4uiyDl8l/z1DdpHVaNb1mR7uAyaVY5avFY8Slah0WJ7fd0s666k7QlFwsxr6Ur2XqVkAM9TfbPzNPPui+0U8K/7Cfeu7qxmbNqW4gGKyFY3gB0uT22B+4pzVcB9flVGpV7DbwxS9unINtzV3ZIMEFpVGqqLXpBk+B5qiBmMeeO0sk="
# travis encrypt GCP_SDK_SECRET=xxx
- secure: "RcUkGMNyGeHkZ5bqVasy2L+7XiDM7kvvkz/HafZc3CeOcVtvCKkfalSswUDYpMsACQJosGA2+ouMz8dON3gLh10ItORoCGRr0WIW2vyGByNEMJVMf6pZQXDStiGOOtRJ0Fsf6dl1/ocOuvYA6DFdDIZRRNwliiIxa3CuATwvVGnh2XG/Q3fXJjAgL+thHExg5LLvdDyJVjr3kWp1uda1SQqZBQHvN4AmttMy4YhKmgDtVSezNa8QxWND52jpOdGH1a+D4cWV7mcGD/Nh9gvhfQUMWo7XayNI/uXMAbA+tOdW3KCz3dUWyxvFW1jOYZ3UmHKYRsf9gObV+U4ekGxkNv6+/wyOOhizzvhTbdtmYXqV2tPay0X4YUJwhnpjoUWstoxvChQQc00z4VSL2uqq4mUdtV7DxTAeD6cQHc8U8NQg+bkT8STf6uKrUWXICaSZ7eID0yv+j7KcSSAcDm5bmNfeNXRRRIVYLMuyknHSZ9ti40jeB6rnEynr/pgFkmOZv6IVK2gTQCSmZPRZIV8YIFKS7399ievWnsmDYr9Cxy51TGxZYngnbAFXAw3F056kaeA0JChxh4pVB81H+I2sShfjxwpRqiz40++LguGoX6oUQemutvzEKeqTs3U75gdnzQWkwnEl++U+vRSD6Ru6w1GF7aVigCqCeU5+np6ZdRE="
cache:
yarn: true
before_install:
# insatll nodejs
- cd $WEB_SRC_DIR
- nvm install $(jq -r '.engines.node' package.json)
- cd $TRAVIS_BUILD_DIR
# install Yarn (https://yarnpkg.com/en/docs/install-ci#travis-tab)
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- ./script/ci-install-web.sh
- ./script/ci-install-api.sh
- ./script/ci-install-gcp.sh
script:
- ./script/ci-test-web.sh
- ./script/ci-test-api.sh
- ./script/ci-build-web.sh
- ./script/ci-build-api.sh
- ./script/ci-push-web.sh
- ./script/ci-push-api.sh
deploy:
skip_cleanup: true
provider: script
script: "./script/ci-deploy.sh"
on:
all_branches: true