-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
33 lines (29 loc) · 802 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
28
29
30
31
32
33
machine:
environment:
GOPATH: "${HOME}/${CIRCLE_PROJECT_REPONAME}/.go_workspace"
mmark_src: github.com/miekg/mmark/mmark
mmark: ./mmark
python:
version: 3.5.2
checkout:
post:
- if [ -e .git/shallow ]; then git fetch origin --unshallow; fi
- git fetch -qf origin gh-pages:gh-pages
dependencies:
pre:
- pip install xml2rfc
- if head -1 -q *.md | grep '^\-\-\-' >/dev/null 2>&1; then gem install --no-doc kramdown-rfc2629; fi
- if head -1 -q *.md | grep '^%%%' >/dev/null 2>&1; then go get "$mmark_src" && go build "$mmark_src"; fi
cache_directories:
- "/opt/circleci/.rvm/gems"
test:
override:
- make
post:
- make report
deployment:
production:
branch: /.*/
commands:
- make artifacts
- make ghpages || make ghpages