forked from datreeio/datree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (53 loc) · 6.09 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
language: go
go:
- "1.17"
os: osx
osx_image: xcode13.2
before_script:
- HOMEBREW_NO_AUTO_UPDATE=1 brew install awscli
- aws --version
script:
- echo $RELEASE_DATREE_PROD
- "travis_wait 60 sleep 3600 &"
- export GO_BUILD_TAG=$(bash ./scripts/define_build_tag.sh)
- go build -tags $GO_BUILD_TAG
- 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
- HOMEBREW_NO_AUTO_UPDATE=1 brew install jq
- 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 ./scripts/install_svu.sh
- echo $(svu --version)
deploy:
- provider: script
skip_cleanup: true
script: bash ./scripts/deploy_release_candidate.sh
on:
branch: main
condition: $RELEASE_DATREE_PROD != true
- provider: script
skip_cleanup: true
script: bash ./scripts/release.sh
on:
branch: main
condition: $RELEASE_DATREE_PROD = true
env:
global:
#GITHUB_TOKEN
- secure: "OQTTfOMNYFxGNkizM7bhK3OJXUntazxaQ6rliRO327fRnMPacK/pswMIwUjjzwTwLV8nVIvACSIWmo/45SeJtLVcHsle3RBn0OZFmgMFjySkLldP71t/4HzV3ef24px9JNX/FO6kQ7tqzzS7SRwlekL4v/r6K8ro1kqmFDLQ2uibgSXqkI7rNwPP56L5+QTX46pA2113NnGpywAm/K33ky40Fb2QclDH41ax+Jm7zyDy1ry0d/T9db+GBOnBsfkqkuBiBDvJ2tp4n0KbvAIt870O8Ey9jB7MUkwdGKH/0ZlEFXihE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