forked from jtblin/kube2iam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (44 loc) · 1.07 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
sudo: required
language: go
services:
- docker
go:
- 1.14.x
arch:
- amd64
- arm64
os:
- linux
jobs:
include:
- os: linux
arch: amd64
- os: linux
arch: arm64
- stage: Push Docker manifest
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
script:
- if [ "$TRAVIS_OS_NAME" == "linux" -a ! -z "$TRAVIS_TAG" ]; then
echo "Executing release-manifest on tag build $TRAVIS_TAG";
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
make release-manifest;
fi
before_install:
- go get -v github.com/mattn/goveralls
install:
- make setup
script:
- make build
- make test-race
- make check
- make bench-race
- make coveralls
after_success:
- if [ "$TRAVIS_BUILD_STAGE_NAME" == "test" -a "$TRAVIS_OS_NAME" == "linux" -a ! -z "$TRAVIS_TAG" ]; then
echo "Executing release on tag build $TRAVIS_TAG";
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
ARCH=linux CPU_ARCH="$TRAVIS_CPU_ARCH" make release;
else
echo "Not executing release on non-tag build";
fi