Skip to content

Commit

Permalink
Travis CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
riobard committed Apr 1, 2018
1 parent 5fd2dd9 commit 8672c6d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: go
sudo: false
go:
- 1.x
install: go get -u -t -v ./...
script: make all
deploy:
provider: releases
api_key:
secure: GBnAjbRNw6r6w9Xanx9F5dQBmzJdbST3BcWSFHqTH2C/fwTS4G4Zw+OiVz2t0Sx3My6dp1sJgdYHn6uqCJUcQfEgkO563vu0SNw63eaEwDYyosOgGGTC8W8b+S8EkL25kkTCFE5wLpnYMVDJR93uIyXE3JmPAEU4iZqCz7WFXDE+cLWqjIPipUh+eBLcgc0IS7I15QOBoP0i44umOVI2eqCNm3zqVU9AvF9tZxJZ/48KzTBUXxnM/8HTJJtyvMAx5xixsrtDJL192wOXh+bKB5M3YBFYold6FN66b/AuddB/L2jKGMS3VLdg4BP/Gk60WkKLd2mNF905ODG2XsqGdL31am+jv8L/l2EKkFjVOWCkQtmhLvz+3E8e9FaXETtd7DYWgp7/C/wKpBhPVwi1iTzfp7v0EGRIP4NC79xFN62HFlSwbr7EZ9K9PKkwSQJx/wc8cRsAqRJP49ieEAWrk9x0vylc8/hZVdxeDfT9i7fmahvS8MWinR6ut7pvZFvk48n02b84EXNmL8sEN4eX7+8tpP7ap1f/YDQaISZdpFopGhsiDBgm2UQO9xuvDJqu2hGDcO8ScNjzozcfBm0VBitG2Q+8rfYp3BBTZc6NkbGabbrxzLO5eGz1Wj68yA4oGJPmJMpnNi0ttLkcqkxtgIFlBdZjVP3KLoj8Y0K11Iw=
file:
- bin/shadowsocks2-linux
- bin/shadowsocks2-macos
- bin/shadowsocks2-win64.exe
on:
repo: riobard/go-shadowsocks2
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
NAME=shadowsocks2
BINDIR=bin
GOBUILD=CGO_ENABLED=0 go build -ldflags '-w -s'
# The -w and -s flags reduce binary sizes by excluding unnecessary symbols and debug info

all: linux macos win64

linux:
GOARCH=amd64 GOOS=linux $(GOBUILD) -o $(BINDIR)/$(NAME)-$@

macos:
GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@

win64:
GOARCH=amd64 GOOS=windows $(GOBUILD) -o $(BINDIR)/$(NAME)-$@.exe

clean:
rm $(BINDIR)/*

0 comments on commit 8672c6d

Please sign in to comment.