Skip to content

Commit

Permalink
Bump version: 1.0.0-dev → 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bivab committed Jan 3, 2017
1 parent fcccc0f commit 2808626
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.0-dev
current_version = 1.0.0
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>\w+))?
tag = False
commit = True
Expand All @@ -9,9 +9,11 @@ serialize =

[bumpversion:part:release]
values =
dev
dev
RC
optional_value = RC

[bumpversion:file:.travis.yml]

[bumpversion:file:Makefile]

6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ before_script:
script:
- make travis
after_success:
- cp handbook-1.0.0-dev.pdf latest.pdf
- cp handbook-1.0.0-dev.html latest.html
- travis-custom-deploy sftp handbook-1.0.0-dev.pdf handbook-1.0.0-dev.html latest.pdf latest.html
- cp handbook-1.0.0.pdf latest.pdf
- cp handbook-1.0.0.html latest.html
- travis-custom-deploy sftp handbook-1.0.0.pdf handbook-1.0.0.html latest.pdf latest.html
notification:
email:
on_success: never
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
MARKDOWN=$(filter-out README.md,$(wildcard *.md))

default: handbook.pdf handbook.html
travis: handbook-1.0.0-dev.html handbook-1.0.0-dev.pdf
travis: handbook-1.0.0.html handbook-1.0.0.pdf

.PHONY: dependencies
dependencies:
git submodule update --init

handbook-1.0.0-dev.html: $(MARKDOWN) dependencies
handbook-1.0.0.html: $(MARKDOWN) dependencies
pandoc -f markdown -t html --css=markdown-css-themes/avenir-white.css \
--standalone --self-contained $(MARKDOWN) -o $@

handbook.html: handbook-1.0.0-dev.html
handbook.html: handbook-1.0.0.html
cp $< $@

handbook-1.0.0-dev.pdf: $(MARKDOWN)
handbook-1.0.0.pdf: $(MARKDOWN)
pandoc --standalone -f markdown -t latex $(MARKDOWN) -o $@

handbook.pdf: handbook-1.0.0-dev.pdf
handbook.pdf: handbook-1.0.0.pdf
cp $< $@

clean:
Expand Down

0 comments on commit 2808626

Please sign in to comment.