Skip to content

Commit

Permalink
Merge branch 'travis'
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuyk committed Jul 22, 2016
2 parents a15e62a + 3db68e1 commit 3cf7d3b
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.cask*
.elc*
elpa
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
language: emacs-lisp
sudo: false
env:
matrix:
- EMACS_VERSION=24.3
- EMACS_VERSION=24.5
- EMACS_VERSION=snapshot
global:
- CASK=$HOME/.cask/bin/cask
cache:
- directories:
- .cask/
before_install:
# Configure $PATH: Executables are installed to $HOME/bin
- export PATH="$HOME/bin:$PATH"
# Download the makefile to emacs-travis.mk
- wget 'https://raw.githubusercontent.com/flycheck/emacs-travis/master/emacs-travis.mk'
# Install Emacs (according to $EMACS_VERSION) and Cask
- make -f emacs-travis.mk install_emacs
- make -f emacs-travis.mk install_cask
# Install Texinfo, if you need to build info manuals for your project
- make -f emacs-travis.mk install_texinfo
install:
# Install your dependencies
- cask install
script:
# Run your tests
- emacs --version
- make test
7 changes: 7 additions & 0 deletions Cask
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(source gnu)
(source melpa)

(package-file "helm-flycheck.el")

(depends-on "helm")
(depends-on "flycheck")
35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.PHONY : test

EMACS ?= emacs
CASK ?= cask
SRC ?= helm-flycheck.el

LOADPATH = -L .

ELPA_DIR = $(shell EMACS=$(EMACS) $(CASK) package-directory)

test: test-compile

clean-elpa:
rm -rf .cask

clean-elc:
cask clean-elc

clean: clean-elpa clean-elc

print-deps:
${EMACS} --version
@echo CASK=${CASK}

test-compile: elpa
$(CASK) exec $(EMACS) -batch -Q $(LOADPATH) -eval "(progn (setq byte-compile-error-on-warn t) (batch-byte-compile))" $(SRC)

travis-ci: print-deps test

elpa: $(ELPA_DIR)

$(ELPA_DIR): Cask
$(CASK) install
touch $@

0 comments on commit 3cf7d3b

Please sign in to comment.