forked from pact-foundation/pact-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
46 lines (44 loc) · 1.17 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
41
42
43
44
45
46
# 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: test
code: |
make test
- script:
name: Publish Coveralls
code: goveralls -service="wercker.com" -coverprofile=profile.cov -repotoken $COVERALLS_TOKEN
- script:
name: package
code: |
. /etc/profile.d/rvm.sh
make package
- script:
name: pact
code: |
./scripts/pact.sh
- script:
name: Cache artifacts for release
code: |
if [ -d "$WERCKER_CACHE_DIR/dist" ]; then rm -rf ${WERCKER_OUTPUT_DIR}/dist; fi
mkdir ${WERCKER_OUTPUT_DIR}/dist
cp -r dist/*.* ${WERCKER_OUTPUT_DIR}/dist/
# TODO: Get tokens for Pact foundation
deploy:
box: golang
steps:
- tcnksm/ghr:
token: $GITHUB_TOKEN
version: $RELEASE_VERSION
input: dist
replace: $RELEASE_IS_DRAFT
pre-release: $RELEASE_IS_DRAFT