forked from pact-foundation/pact-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
40 lines (38 loc) · 1.02 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# The container definition we want to use for developing our app
# box: golang
box: mefellows/pact-go-docker-build
build:
steps:
- setup-go-workspace
- golint:
exclude: "vendor"
- script:
name: build
code: |
make bin
- script:
name: install-cli-tools
code: |
cd $WERCKER_ROOT
./scripts/install-cli-tools.sh
- script:
name: test
code: |
export PATH=$WERCKER_ROOT/build/pact/bin:$PATH
sudo chmod -R go-w /go
make test
- script:
name: Publish Coveralls
code: goveralls -service="wercker.com" -coverprofile=profile.cov -repotoken $COVERALLS_TOKEN
- script:
name: integration test
code: |
export PATH=$WERCKER_ROOT/build/pact/bin:$PATH
export LANG=C.UTF-8
./scripts/pact.sh
deploy:
steps:
- github-create-release:
token: $GITHUB_TOKEN
tag: $RELEASE_VERSION
pre-release: $RELEASE_IS_DRAFT