forked from stripe/stripe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (46 loc) · 1.35 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
dist: bionic
language: go
go: '1.14.x'
addons:
apt:
packages:
- rpm
services:
- docker
install:
- make setup
script:
- travis_retry make ci
deploy:
- provider: script
skip_cleanup: true
# We're running GoReleaser using the mailchain/goreleaser-xcgo Docker image
# so we can use cgo when building the binaries for all platforms.
# See https://github.com/stripe/stripe-cli/pull/439 and
# https://github.com/goreleaser/goreleaser/issues/708#issuecomment-488779914
script: docker run -e DOCKER_USERNAME=$DOCKER_USERNAME -e DOCKER_PASSWORD=$DOCKER_PASSWORD -e GITHUB_TOKEN=$GITHUB_TOKEN --rm --privileged -v $TRAVIS_BUILD_DIR:/go/src/github.com/stripe/stripe-cli -v /var/run/docker.sock:/var/run/docker.sock -w /go/src/github.com/stripe/stripe-cli mailchain/goreleaser-xcgo --rm-dist
verbose: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
- provider: script
skip_cleanup: true
script: bash scripts/publish-deb-to-bintray.sh
verbose: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
- provider: script
skip_cleanup: true
script: bash scripts/publish-rpm-to-bintray.sh
verbose: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
- provider: script
skip_cleanup: true
script: bash scripts/upload-zip-to-virustotal.sh
verbose: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux