This repository has been archived by the owner on Jan 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (33 loc) · 1.57 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
language: go
go:
- master
script:
- go build ./...
env:
global:
- CGO_ENABLED=0 GO111MODULE=on
before_deploy:
- GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -a -installsuffix static -o dor-http-${TRAVIS_TAG}-amd64 service/dor-http/dor.go
- GOOS=linux GOARCH=386 go build -ldflags="-s -w" -a -installsuffix static -o dor-http-${TRAVIS_TAG}-386 service/dor-http/dor.go
- GOOS=windows GOARCH=386 go build -ldflags="-s -w" -a -installsuffix static -o dor-http-${TRAVIS_TAG}-x86.exe service/dor-http/dor.go
- GOOS=darwin go build -ldflags="-s -w" -a -installsuffix static -o dor-http-${TRAVIS_TAG}-mac service/dor-http/dor.go
- GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -a -installsuffix static -o dor-insert-${TRAVIS_TAG}-amd64 cmd/dor-insert/dor-insert.go
- GOOS=linux GOARCH=386 go build -ldflags="-s -w" -a -installsuffix static -o dor-insert-${TRAVIS_TAG}-386 cmd/dor-insert/dor-insert.go
- GOOS=windows GOARCH=386 go build -ldflags="-s -w" -a -installsuffix static -o dor-insert-${TRAVIS_TAG}-x86.exe cmd/dor-insert/dor-insert.go
- GOOS=darwin go build -ldflags="-s -w" -a -installsuffix static -o dor-insert-${TRAVIS_TAG}-mac cmd/dor-insert/dor-insert.go
deploy:
provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
file:
- dor-http-${TRAVIS_TAG}-amd64
- dor-http-${TRAVIS_TAG}-386
- dor-http-${TRAVIS_TAG}-x86.exe
- dor-http-${TRAVIS_TAG}-mac
- dor-insert-${TRAVIS_TAG}-amd64
- dor-insert-${TRAVIS_TAG}-386
- dor-insert-${TRAVIS_TAG}-x86.exe
- dor-insert-${TRAVIS_TAG}-mac
on:
repo: ilyaglow/dor
tags: true