Skip to content
This repository was archived by the owner on Jun 23, 2020. It is now read-only.

Commit 37cdd06

Browse files
committed
Some improvements with how wercker wercks
1 parent b50474b commit 37cdd06

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,7 @@ build-integration-tests:
7070
-i \
7171
-o ${BIN_DIR}/integration-tests \
7272
./test/integration
73+
74+
.PHONY: version
75+
version:
76+
@echo ${VERSION}

wercker.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ build:
55
- script:
66
name: write VERSION.txt
77
code: |
8-
git describe --always --dirty > ${WERCKER_OUTPUT_DIR}/VERSION.txt
9-
cat ${WERCKER_OUTPUT_DIR}/VERSION.txt
8+
make version > VERSION.txt
9+
cat VERSION.txt
1010
1111
- script:
1212
name: check boilerplate
@@ -16,31 +16,19 @@ build:
1616
name: go fmt
1717
code: make gofmt
1818

19-
- script:
20-
name: build
21-
code: |
22-
make build
23-
make build-integration-tests
24-
2519
- script:
2620
name: go vet
2721
code: make govet
2822

2923
- script:
3024
name: unit tests
3125
code: make test
32-
33-
- script:
34-
name: copy build artifacts
35-
code: cp -R dist ${WERCKER_OUTPUT_DIR}/
36-
26+
3727
- script:
38-
name: copy test artifacts
28+
name: build
3929
code: |
40-
mkdir -p ${WERCKER_OUTPUT_DIR}/test
41-
cp -R test/integration ${WERCKER_OUTPUT_DIR}/test/
42-
cp -R test/system ${WERCKER_OUTPUT_DIR}/test/
43-
cp -R ansible ${WERCKER_OUTPUT_DIR}/
30+
make build
31+
make build-integration-tests
4432
4533
integration-test:
4634
box:

0 commit comments

Comments
 (0)