branch: externals/bnf-mode commit a9d6cc3a1449e0cf73007f9ee5c5e5974ebc5cfc Merge: aed186d 1105934 Author: Serghei Iakovlev <sergeyk...@users.noreply.github.com> Commit: GitHub <nore...@github.com>
Merge pull request #3 from sergeyklay/feature/build-pkg Setting up Travis CI builds --- .travis.yml | 36 +++++++++++++++++++++++++++++++----- CHANGELOG.org | 4 +++- Makefile | 11 +++++++++-- bnf-mode.el | 2 +- test/bnf-mode-font-test.el | 2 +- test/test-helper.el | 2 +- 6 files changed, 46 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index b796898..795d09a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,11 +32,11 @@ cache: # Cache Cask bootstrap dependencies - "$HOME/.emacs.d/.cask" -# Allow Emacs snapshot builds to fail and don't wait for it -matrix: - fast_finish: true - allow_failures: - - env: EMACS_VERSION=git-snapshot +addons: + apt: + packages: + - bsdtar + - texinfo git: depth: 1 @@ -54,6 +54,12 @@ env: global: - PATH="$HOME/bin:$HOME/.cask/bin:$HOME/.evm/bin:$PATH" +# Allow Emacs snapshot builds to fail and don't wait for it +matrix: + fast_finish: true + allow_failures: + - env: EMACS_VERSION=git-snapshot + before_install: # Setup Emacs Version Manager - git clone -q --depth=1 https://github.com/rejeep/evm.git $HOME/.evm @@ -75,5 +81,25 @@ script: - '[[ "$EMACS_MAJOR_VERSION" = "24" ]] || make checkdoc' - make test +before_deploy: + - git config --global user.name cicdbot + - git config --global user.email t...@zephir-lang.com + - wget https://github.com/jgm/pandoc/releases/download/2.7.2/pandoc-2.7.2-1-amd64.deb -o /dev/null + - sudo dpkg -i pandoc-2.7.2-1-amd64.deb + - make package + +deploy: + provider: releases + api_key: + secure: + SUFVzrJwPz29I6x4SFB5vNboKxX8pEIdB67+d6w4/hgeifYbDl7BSWLq1HFYvTIIye439uVCIN0zkwNGFUJsjIfw4Yn0N3dasgD7dlxguUz7mBg5JV8BOzQqguv/XmY3ze2aXTkk+nbx37wvTt5SsGOyq9pT/Vrufxli7YbAglFl648Nc8fshQSioBpQKWXTD3Msgs5QNjM6ShAgeEA11GBaRgO2aZaokxv+9xsdM00O7ADHulaC+jniO3BucQrENQeGI5mLIzPZdHpfOrlQ600J4jU3cC8C7NTgkQDBpNhN5eiDallvHxTl0sb5EvTwznMAGi+YXGmorgkCnGT+glnj1zWYaV2T4O038h7xT/Kub/iSpi3GQVmxMNrS09JbZXuQcXyvyvNPYJhQZG8M8MYPb1N7u6MfMav88SDTZkxGzJ9gI5l4CyPaMAO2GdVdXeY0ANGtyg7ntDZpFtxIRRjIpSthU/QQ3Ss0yL [...] + file_glob: true + file: bnf-mode-*.tar + skip_cleanup: true + on: + tags: true + condition: $EMACS_VERSION = 26.1 + repo: sergeyklay/bnf-mode + notifications: email: false diff --git a/CHANGELOG.org b/CHANGELOG.org index 01de194..0f7bc58 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file. The format is based on [[http://keepachangelog.com][Keep a Changelog]] and this project adheres to [[http://semver.org][Semantic Versioning]]. -** [[https://github.com/sergeyklay/bnf-mode/compare/0.3.2...HEAD][Unreleased]] +** [[https://github.com/sergeyklay/bnf-mode/compare/0.4.0...HEAD][Unreleased]] + +*** [[https://github.com/sergeyklay/bnf-mode/compare/0.3.2...0.4.0][0.4.0]] - 2019-04-21 *** Added - Added =comment-start-skip= to help comment commands recognize comments - Return back =comment-start= and =comment-end= removed in [[https://github.com/sergeyklay/bnf-mode/commit/83f0e0fc144e453bcce459d2d655a7b48e77953e][83f0e0f]] diff --git a/Makefile b/Makefile index 62bb55d..c7daeba 100644 --- a/Makefile +++ b/Makefile @@ -112,11 +112,16 @@ test: .PHONY: clean clean: $(CASK) clean-elc - $(RM) -f README $(ARCHIVE_NAME).info $(ARCHIVE_NAME)-pkg.el + $(RM) -f README $(ARCHIVE_NAME).info + $(RM) -f $(ARCHIVE_NAME)-pkg.el $(ARCHIVE_NAME)-*.tar .PHONY: package package: $(PACKAGE_NAME).tar +.PHONY: install +install: $(PACKAGE_NAME).tar + $(EMACS) --batch -l package -f package-initialize --eval "(package-install-file \"$(PWD)/$(PACKAGE_NAME).tar\")" + .PHONY: help help: .title echo 'Run `make init` first to install and update all local dependencies.' @@ -127,8 +132,10 @@ help: .title echo ' checkdoc: Checks BNF Mode code for errors in documentation' echo ' build: Byte compile BNF Mode package' echo ' test: Run the non-interactive unit test suite' - echo ' clean: Remove all byte compiled Elisp files' + echo ' clean: Remove all byte compiled Elisp files as well as build' + echo ' artifacts' echo ' package: Build package' + echo ' install: Install BNF Mode' echo '' echo 'Available programs:' echo ' $(CASK): $(if $(HAVE_CASK),yes,no)' diff --git a/bnf-mode.el b/bnf-mode.el index 387dc51..4ff9e2f 100644 --- a/bnf-mode.el +++ b/bnf-mode.el @@ -4,7 +4,7 @@ ;; Author: Serghei Iakovlev <sadhook...@gmail.com> ;; Maintainer: Serghei Iakovlev -;; Version: 0.3.2 +;; Version: 0.4.0 ;; URL: https://github.com/sergeyklay/bnf-mode ;; Keywords: languages ;; Package-Requires: ((cl-lib "0.5") (emacs "24.3")) diff --git a/test/bnf-mode-font-test.el b/test/bnf-mode-font-test.el index d25f54b..655146d 100644 --- a/test/bnf-mode-font-test.el +++ b/test/bnf-mode-font-test.el @@ -4,7 +4,7 @@ ;; Author: Serghei Iakovlev <sadhook...@gmail.com> ;; Maintainer: Serghei Iakovlev -;; Version: 0.3.2 +;; Version: 0.4.0 ;; URL: https://github.com/sergeyklay/bnf-mode ;; This file is NOT part of GNU Emacs. diff --git a/test/test-helper.el b/test/test-helper.el index 5bbfc83..1f5be9e 100644 --- a/test/test-helper.el +++ b/test/test-helper.el @@ -4,7 +4,7 @@ ;; Author: Serghei Iakovlev <sadhook...@gmail.com> ;; Maintainer: Serghei Iakovlev -;; Version: 0.3.2 +;; Version: 0.4.0 ;; URL: https://github.com/sergeyklay/bnf-mode ;; This file is NOT part of GNU Emacs.