forked from anashaka/logspout-logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
27 lines (24 loc) · 879 Bytes
/
circle.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
machine:
environment:
IMPORT_PATH: ".go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
dependencies:
# This is an ugly hack to work around golang's rigid project structure,
# made even more ugly by CircleCI's goofy support for ~ and relative paths.
# Instead, we inject ~ and absolute paths at every point.
# Change at your own risk. You've been warned.
# What this gives us is a clean test: block that works in Circle and on dev workstations
pre:
- rm -rf ~/$IMPORT_PATH; mv ~/$CIRCLE_PROJECT_REPONAME ~/$IMPORT_PATH; ln -s ~/$IMPORT_PATH ~/$CIRCLE_PROJECT_REPONAME
- make deps
test:
override:
- make test
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- cp report.xml $CIRCLE_TEST_REPORTS/junit/
- make coveralls
#deployment:
# production:
# branch: production
# commands:
# - make deploy