forked from elicharlese/datree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (42 loc) · 3.83 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
language: go
go:
- 1.17
os: osx
osx_image: xcode12.5
script:
- "travis_wait 60 sleep 3600 &"
- go build -tags $DATREE_DEPLOYMENT
- go test ./...
before_deploy:
- curl -sfL https://git.io/goreleaser | VERSION=v$GORELEASER_VERSION sh -s -- check
- HOMEBREW_NO_AUTO_UPDATE=1 brew install mitchellh/gon/gon
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- git remote set-url origin https://datree-ci:[email protected]/datreeio/datree.git
- bash ./internal/release/install_svu.sh
- echo $(svu --version)
- export SEMVER_NUMBER=$(svu next --strip-prefix --no-metadata)
deploy:
- provider: script
skip_cleanup: true
script: bash ./internal/release/deploy.sh
on:
all_branches: true
condition: $TRAVIS_BRANCH =~ ^(staging|main)$
- provider: script
skip_cleanup: true
script: bash ./internal/release/internal_deploy.sh
on:
branch: main
env:
global:
#GITHUB_TOKEN
- secure: "sEqRG6AlcLr7S4j4j8HznfV8tp+eaNjqP5d/wKtBBabEcAkRVTxKb/qiW56JkfE+v4KhtihNNYIX2nOKqOmVZLXkLWlpUqDsZ77owLIuQVb6ajr4HU0bw1vr20RPXThTqpIikeCoyiabrx2hQo0Epl11roay8V53fpPxwnenJETIlR95VXWxtDqTzow4QCyQy5AzlE51EGgPlSL9JqspvL7AwPQc2IY2v8M/Zhgdo2wQ2DVDnd2E1Bakt65ej9rvECfQIJ9d6kDHPQ8L8wqK1ALXbVrv/f2vlKorG6Nm5nNND2xYc5NUFUEq62K002U0HEUD7twHHoukeMB45R14SK+hBvQ9pPAIux7hzctSBp/PV1qCMMSGvEQmtTe9op1iGBvFfeCBVV4wC/IE49ymoh1yLz0noIAPcWC73UJWKJQkCTRFl0lI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