-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
68 lines (59 loc) · 1.32 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
60
61
62
63
64
65
66
67
68
sudo: false
dist: xenial
language: go
go:
- "1.13"
services:
- docker
stages:
- test
- build
- deploy
jobs:
include:
- stage: test
name: "Verify"
script:
- make checkfmt
- make fmt
- make vet
- make race
- make gocyclo
- make lint
- make ineffassign
- make misspell
- name: "Unit Test"
script:
- make test
- make benchmark
- make coverage
- bash <(curl -s https://codecov.io/bash)
- name: "Test UI"
script: make npm_test
- name: "Compile"
stage: build
script:
- make
- name: "Build UI"
script: make npm_test
- stage: deploy
name: "GitHub Releases"
script:
- GOOS=linux GOARCH=amd64 BUILDPATH=./bin/multikube-linux-amd64 make
- GOOS=linux GOARCH=arm BUILDPATH=./bin/multikube-linux-arm make
- GOOS=linux GOARCH=arm64 BUILDPATH=./bin/multikube-linux-arm64 make
- GOOS=windows GOARCH=amd64 BUILDPATH=./bin/multikube-windows-amd64.exe make
- GOOS=darwin GOARCH=amd64 BUILDPATH=./bin/multikube-darwin-amd64 make
deploy:
provider: releases
api_key: ${GITHUB_API_KEY}
file:
- bin/logga-linux-amd64
- bin/logga-linux-arm
- bin/logga-linux-arm64
- bin/logga-windows-amd64.exe
- bin/logga-darwin-amd64
skip_cleanup: true
draft: true
on:
tags: true