bt2qbt/bitbucket-pipelines.yml

18 lines
815 B
YAML
Raw Normal View History

2018-04-02 12:33:30 +02:00
# This is a sample build configuration for Go.
# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: golang:1.10
pipelines:
default:
- step:
script: # Modify the commands below to build your repository.
- PACKAGE_PATH="${GOPATH}/src/bt2qbt/"
- mkdir -pv "${PACKAGE_PATH}"
- tar -cO --exclude-vcs --exclude=bitbucket-pipelines.yml . | tar -xv -C "${PACKAGE_PATH}"
- cd "${PACKAGE_PATH}"
- go get -v
- GOOS=windows GOARCH=386 go build -ldflags "-s -w" -v -o bt2qbt_i386.exe
- GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -v -o bt2qbt_amd64.exe