-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize build and tests with cask-package-toolset
- Loading branch information
Bar Magal
committed
Aug 15, 2015
1 parent
40c4a5f
commit ad25ade
Showing
6 changed files
with
103 additions
and
68 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 |
---|---|---|
@@ -1 +1 @@ | ||
-L . | ||
-L . |
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
# temporary files | ||
# Compiled and temporary files | ||
*.elc | ||
*~ | ||
# Cask's hidden directory | ||
.cask | ||
# compiled files | ||
*.elc | ||
|
||
# Cask | ||
/.cask | ||
dist | ||
|
||
# Ecukes | ||
/features/project/.cask | ||
/features/project/test/*.el |
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 |
---|---|---|
@@ -1,22 +1,27 @@ | ||
language: emacs-lisp | ||
before_install: | ||
# prepare paths for EVM and Cask | ||
- sudo mkdir /usr/local/evm | ||
- sudo chown $USER:$USER /usr/local/evm | ||
- export PATH="$HOME/.cask/bin:$PATH" | ||
- export PATH="$HOME/.evm/bin:$PATH" | ||
# install EVM, Emacs and Cask (Emacs before Cask, because Cask needs Emacs) | ||
- curl -fssl https://raw.githubusercontent.com/rejeep/evm/master/go | bash | ||
- evm install $EVM_EMACS --use --skip | ||
- curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python | ||
# initiate cask | ||
- cask | ||
env: | ||
# - EVM_EMACS=emacs-24.1-bin | ||
# - EVM_EMACS=emacs-24.2-bin | ||
- EVM_EMACS=emacs-24.3-bin | ||
- EVM_EMACS=emacs-24.4-bin | ||
- EVM_EMACS=emacs-24.5-bin | ||
|
||
script: | ||
- emacs --version | ||
- make test | ||
|
||
env: | ||
matrix: | ||
- EVM_EMACS=emacs-24.5-bin | ||
- EVM_EMACS=emacs-24.4-bin | ||
- EVM_EMACS=emacs-24.3-bin | ||
# - EVM_EMACS=emacs-24.2-bin | ||
# - EVM_EMACS=emacs-24.1-bin | ||
- EVM_EMACS=emacs-git-snapshot | ||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- env: EVM_EMACS=emacs-git-snapshot | ||
|
||
sudo: required | ||
before_install: | ||
- curl -fsSkL https://gist.github.com/rejeep/7736123/raw > travis.sh && source ./travis.sh | ||
- evm install $EVM_EMACS --use --skip | ||
- cask | ||
|
||
# notifications: | ||
# email: false |
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
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 |
---|---|---|
@@ -1,29 +1,17 @@ | ||
EMACS ?= emacs | ||
CASK ?= cask | ||
SOURCES = window-purpose-utils.el window-purpose-configuration.el window-purpose-core.el window-purpose-prefix-overload.el window-purpose-switch.el window-purpose-layout.el window-purpose-fixes.el window-purpose.el window-purpose-x.el | ||
EMACS ?= emacs | ||
INPUT_FILE := "test/user-input.txt" | ||
|
||
all: test | ||
|
||
deps: | ||
${CASK} install | ||
|
||
test: clean deps test-fast | ||
# ecukes not used, so test only init | ||
test: unit | ||
|
||
test-fast: | ||
rm -f ${INPUT_FILE} | ||
touch ${INPUT_FILE} | ||
unit: | ||
${CASK} exec ert-runner < ${INPUT_FILE} | ||
|
||
compile: clean-elc deps | ||
${CASK} exec ${EMACS} -Q --batch -L . -f batch-byte-compile ${SOURCES} | ||
ecukes: | ||
${CASK} exec ecukes | ||
|
||
clean: clean-elc clean-deps | ||
|
||
clean-elc: | ||
rm -f *.elc | ||
|
||
clean-deps: | ||
rm -rf .cask/ | ||
|
||
.PHONY: all test clean | ||
install: | ||
${CASK} install |
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