Skip to content

Commit ec8696d

Browse files
committed
bitbucket-pipelines.yml created online with Bitbucket
1 parent 4a9b81a commit ec8696d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

bitbucket-pipelines.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This is a sample build configuration for Go.
2+
# Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples.
3+
# Only use spaces to indent your .yml configuration.
4+
# -----
5+
# You can specify a custom docker image from Docker Hub as your build environment.
6+
image: golang:1.7
7+
8+
pipelines:
9+
default:
10+
- step:
11+
script: # Modify the commands below to build your repository.
12+
- PACKAGE_PATH="${GOPATH}/src/bitbucket.org/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}"
13+
- mkdir -pv "${PACKAGE_PATH}"
14+
- tar -cO --exclude-vcs --exclude=bitbucket-pipelines.yml . | tar -xv -C "${PACKAGE_PATH}"
15+
- cd "${PACKAGE_PATH}"
16+
- go get -v
17+
- go build -v
18+
- go test -v

0 commit comments

Comments
 (0)