-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (64 loc) · 1.56 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: required
env:
global:
- GO111MODULE=on
services:
- docker
stages:
- test
- versioning
- release
- chart
jobs:
include:
- stage: test
language: go
go: "1.13"
script:
- go get golang.org/x/lint/golint
- ./.ci/check.sh
- stage: versioning
language: node_js
node_js: "10"
install:
- npm install -g semantic-release @semantic-release/release-notes-generator @semantic-release/commit-analyzer @semantic-release/changelog @semantic-release/github @semantic-release/git
if: branch = master
script:
- semantic-release
- stage: release
language: go
go: "1.13"
addons:
apt:
packages:
- snapd
env:
- PATH=/snap/bin:$PATH
install:
- sudo snap install snapcraft --classic
if: branch = master
deploy:
- provider: script
skip_cleanup: true
overwrite: true
script:
git pull && curl -sL https://git.io/goreleaser | bash
- stage: chart
language: minimal
if: branch = master
env:
- NAME=uropa
- TEAM=ninjaneers-team
- REPOSITORY=charts
- VERSION=1.0.0
before_install:
- curl -L https://git.io/get_helm.sh | bash
- helm init --client-only
- VERSION=$(git describe --tags --abbrev=0 | cut -c 2-)
script:
- helm lint charts/$NAME
- helm package charts/$NAME --version=$VERSION
- ./.ci/update_chart.sh
cache:
directories:
- $HOME/gopath/pkg/mod