-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (53 loc) · 1.89 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
53
54
55
56
57
58
59
60
61
62
language: rust
os: linux
rust: nightly
dist: trusty
sudo: required
addons:
apt:
packages:
- musl
- musl-dev
- musl-tools
before_script:
- rustup target add x86_64-unknown-linux-musl --toolchain nightly
- if [[ "x$BUILD_WASM" == "xtrue" ]]; then rustup target add wasm32-unknown-unknown --toolchain nightly; cargo install --force wasm-gc; fi
script:
- echo "Building isymtope binaries..."
- ./scripts/build.sh
- if [[ "x$BUILD_WASM" == "xtrue" ]]; then ./scripts/build-wasm.sh; fi
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/bin" ]; then mkdir -p "$HOME/bin"; fi
- if [ ! -f "$HOME/bin/kedge" ]; then curl -L https://github.com/kedgeproject/kedge/releases/download/v0.9.0/kedge-linux-amd64 -o "${HOME}/bin/kedge"; chmod +x "${HOME}/bin/kedge"; fi
- source /home/travis/google-cloud-sdk/path.bash.inc
- export PATH="$HOME/bin:$PATH"
- gcloud --quiet version
- gcloud --quiet components update
- gcloud --quiet components update beta
- gcloud --quiet components update kubectl
deploy:
- provider: script
script: /bin/sh ./scripts/deploy-production.sh
skip_cleanup: true
on:
branch: master
cache:
cargo: true
directories:
- "$HOME/.rustup"
- "$HOME/google-cloud-sdk"
services:
- docker
env:
global:
- GOOGLE_APPLICATION_CREDENTIALS=~/gcloud-service-key.json
- PROJECT_NAME_PRD=isymtope-demo
- CLUSTER_NAME_PRD=cluster-1
- CLOUDSDK_COMPUTE_ZONE=us-central1-a
- DOCKER_IMAGE_NAME=isymtope-demo
- KUBE_DEPLOYMENT_NAME=isymtope-demo
- KUBE_DEPLOYMENT_CONTAINER_NAME=isymtope-demo
- BUILD_WASM=false
- WORKER_APP_BASE_URL=https://playground.isymtope.org/app/playground/_worker/app
- RESOURCES_BASE_URL=https://playground.isymtope.org/resources/app/