Go modules env variable
Adding support for go modules inside travis script
Cette révision appartient à :
Parent
456bd179ff
révision
541f8493a9
2 fichiers modifiés avec 4 ajouts et 4 suppressions
|
@ -11,8 +11,8 @@ before_install:
|
|||
- go get github.com/Stephen304/goscrape
|
||||
- go get github.com/anacrolix/torrent
|
||||
before_script:
|
||||
- go vet
|
||||
- go test -v ./...
|
||||
- env GO111MODULE=on go vet
|
||||
- env GO111MODULE=on go test -v ./...
|
||||
after_success:
|
||||
- overalls -project=github.com/NyaaPantsu/nyaa -covermode=count -debug
|
||||
- goveralls -coverprofile="overalls.coverprofile" -service=travis-ci
|
||||
|
|
|
@ -15,7 +15,7 @@ for i in "${OSes[@]}"; do
|
|||
cc=${arr[1]}
|
||||
rm -f nyaa nyaa.exe
|
||||
echo -e "\nBuilding $os..."
|
||||
echo GOOS=$os GOARCH=amd64 CC=$cc CGO_ENABLED=1 go build -v -ldflags="-X main.buildversion=`git rev-parse HEAD`"
|
||||
GOOS=$os GOARCH=amd64 CC=$cc CGO_ENABLED=1 go build -v -ldflags="-X main.buildversion=$(git rev-parse HEAD)"
|
||||
echo GOOS=$os GOARCH=amd64 CC=$cc CGO_ENABLED=1 GO111MODULE=on go build -v -ldflags="-X main.buildversion=`git rev-parse HEAD`"
|
||||
GOOS=$os GOARCH=amd64 CC=$cc CGO_ENABLED=1 GO111MODULE=on go build -v -ldflags="-X main.buildversion=$(git rev-parse HEAD)"
|
||||
zip -9 -r dist/nyaa-${version}_${os}_amd64.zip os public templates service/user/locale *.md nyaa nyaa.exe
|
||||
done
|
||||
|
|
Référencer dans un nouveau ticket