-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.cask* | ||
.elc* | ||
elpa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $@ | ||
|