-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
57 lines (48 loc) · 1.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
os: linux
dist: xenial
language: go
go: "1.14.x"
services:
- docker
stages:
- vendor
- generate
- lint
- build
- test
- deploy
jobs:
include:
- stage: vendor
name: Vendor
script: make vendor && git diff --exit-code
- stage: generate
name: Generate
script: make generate && git diff --exit-code
- stage: lint
name: Lint
script: make lint
- stage: build
name: Build
script: make build
- stage: test
name: Unit tests
script: make test-unit
- name: End to end tests
script: ./scripts/travis-e2e.sh
- stage: deploy
name: Deploy image to quay.io
script: skip
before_deploy:
- docker login -u "$QUAY_USERNAME" --password-stdin quay.io <<< "$QUAY_PASSWORD"
deploy:
- provider: script
script: TAG=latest ./scripts/push-docker-images.sh
on:
branch: master
- provider: script
script: TAG=$TRAVIS_TAG ./scripts/push-docker-images.sh
on:
tags: true
after_deploy:
docker logout quay.io