Skip to content

Commit

Permalink
Updates to the CI flow (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski authored May 14, 2018
1 parent 2c12a46 commit 667cad2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
14 changes: 11 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,15 @@ jobs:
- run:
name: Generate Changelog
command: |
tag=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1` || true)
since_tag=$(if [ "${tag}" ]; then echo "--since-tag ${tag}"; fi)
docker pull timfallmk/github-changelog-generator
docker run --name changelog timfallmk/github-changelog-generator \
-u ${CIRCLE_PROJECT_USERNAME} \
-p ${CIRCLE_PROJECT_REPONAME} \
-t ${GITHUB_TOKEN} \
--since-tag $(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)
${since_tag}
docker cp changelog:/usr/local/src/your-app/CHANGELOG.md ./
- run:
name: Create Release
Expand All @@ -161,12 +164,17 @@ workflows:
jobs:
- build
- publish-edge:
context: vapor-auto
requires:
- build
filters:
branches:
only: master
- publish-release:
<<: *tag-filters
- release:
context: vapor-auto
<<: *tag-filters
- publish-release:
context: vapor-auto
<<: *tag-filters
requires:
- release
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fmt: ## Run goimports on all go files

.PHONY: github-tag
github-tag: ## Create and push a tag with the current plugin version
git tag -a ${PLUGIN_VERSION} -m "${PLUGIN_NAME} version ${PLUGIN_VERSION}"
git tag -a ${PLUGIN_VERSION} -m "${PLUGIN_NAME} plugin version ${PLUGIN_VERSION}"
git push -u origin ${PLUGIN_VERSION}

.PHONY: lint
Expand All @@ -74,8 +74,13 @@ ifndef HAS_LINT
gometalinter --install
endif
@ # disable gotype: https://github.com/alecthomas/gometalinter/issues/40
gometalinter ./... --tests --vendor --deadline=5m \
--disable=gotype --disable=gocyclo
gometalinter ./... \
--disable=gotype --disable=gocyclo \
--tests \
--vendor \
--sort=severity \
--aggregate \
--deadline=5m

.PHONY: setup
setup: ## Install the build and development dependencies and set up vendoring
Expand Down

0 comments on commit 667cad2

Please sign in to comment.