forked from datreeio/datree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (47 loc) · 3.9 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
language: go
go:
- "1.17"
dist: trusty
before_script:
- pyenv global 3.6
- pip install -U pip
- pip install --user awscli
- aws --version
- sudo apt-get -y install jq
- jq --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:
- jq --version
- curl -sfL https://git.io/goreleaser | VERSION=v$GORELEASER_VERSION sh -s -- check
- 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
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/0ZlEFXihEmKIVn9pih5t8EFZzVxdPK+aJ3SHeqWAu9v0Iy1lsxs1je6fIkhA5hkHk9Hz4mgRrwiGRG1d25sBoNegnu0uA5Iowtwp4Rp7l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