/
.travis.yml
42 lines (36 loc) · 874 Bytes
/
.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
language: go
env:
- MONDAY_NETWORK_INTERFACE=lo:0
matrix:
include:
- go: 1.x
env: LATEST=true
- go: 1.11.x
- go: 1.12.x
- go: tip
allow_failures:
- go: tip
before_install:
- go get github.com/mitchellh/gox
install:
- export GO111MODULE=on
- go get -t -v ./...
script:
- sudo ifconfig lo:0 127.0.0.2 netmask 255.0.0.0 up
- go test -v ./...
- if [ "${LATEST}" = "true" ]; then gox -ldflags "-s -w -X main.Version=$TRAVIS_TAG" -os="linux darwin" -arch="386 amd64" -osarch="linux/arm" -output="monday-{{.OS}}-{{.Arch}}" -verbose ./...; fi
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: $GITHUB_TOKEN
file:
- monday-darwin-386
- monday-darwin-amd64
- monday-linux-386
- monday-linux-amd64
- monday-linux-arm
on:
repo: eko/monday
tags: true
condition: $LATEST = true