emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/bnf-mode 7a4a1b0 55/74: Build package on Travis CI


From: Stefan Monnier
Subject: [elpa] externals/bnf-mode 7a4a1b0 55/74: Build package on Travis CI
Date: Thu, 9 May 2019 08:27:52 -0400 (EDT)

branch: externals/bnf-mode
commit 7a4a1b05c09ac01d41b8aee71741510ae20ec25d
Author: Serghei Iakovlev <address@hidden>
Commit: Serghei Iakovlev <address@hidden>

    Build package on Travis CI
---
 .travis.yml |  9 +++++++++
 Makefile    | 11 +++++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index b796898..2a4c049 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -38,6 +38,13 @@ matrix:
   allow_failures:
     - env: EMACS_VERSION=git-snapshot
 
+addons:
+  apt:
+    packages:
+      - bsdtar
+      - texinfo
+      - pandoc
+
 git:
   depth: 1
 
@@ -74,6 +81,8 @@ script:
   # The 'checkdoc-file' present on Emacs >= 25.1
   - '[[ "$EMACS_MAJOR_VERSION" = "24" ]] || make checkdoc'
   - make test
+  - make package
+  - ls -al
 
 notifications:
   email: false
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)'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]