File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ language: go
2
2
sudo : false
3
3
go :
4
4
- 1.7.3
5
+
6
+ install : true
5
7
6
8
script :
7
- - CGO_ENABLED=1 GOARCH=amd64 GOOS=linux go build -o servicecenter github.com/servicecomb/service-center
9
+ - bash +x scripts/ build.sh
8
10
9
11
after_success :
10
12
- bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 1
1
# service-center [ ![ Build Status] ( https://travis-ci.org/ServiceComb/service-center.svg?branch=master )] ( https://travis-ci.org/ServiceComb/service-center )
2
2
A standalone service center to allow services to register their instance information and to discover providers of a given service
3
- EDIT1
Original file line number Diff line number Diff line change
1
+ export OLD_PATH=$( pwd)
2
+ export BUILD_TEMP_PATH=src/github.com/servicecomb/service-center
3
+ cd ..
4
+ rm -rf src
5
+ mkdir -p $BUILD_TEMP_PATH
6
+ cp -r $OLD_PATH /* $BUILD_TEMP_PATH
7
+ export GOPATH=$( pwd)
8
+ cd $BUILD_TEMP_PATH
9
+ CGO_ENABLED=0 GO_EXTLINK_ENABLED=0 go build --ldflags ' -w -extldflags "-static"' -o servicecenter
You can’t perform that action at this time.
0 commit comments