branch: elpa/dart-mode
commit 7c28c584efeade3aceac5f819261cc5b0a42d624
Author: Brady Trainor <[email protected]>
Commit: Brady Trainor <[email protected]>
Add Travis-CI and Cask
We chose EVM for the emacs images in travis. We avoid the docker emacs
images for now, as it made it less straight-forward to setup local
travis-ci testing, via the travis-ci docker image, and then the steps
required to nest a docker emacs inside.
The current .travis.yml file was adapted from EVM's README and elpy's
.travis.yml.
The use of Cask is motivated by the external dependencies, such as
dash and s.
---
.travis.yml | 23 +++++++++++++++++++++++
Cask | 4 ++++
Makefile | 4 ++++
3 files changed, 31 insertions(+)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..b0db0b2
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,23 @@
+sudo: required
+
+language: generic
+
+env:
+ - EVM_EMACS=emacs-24.4-travis
+ - EVM_EMACS=emacs-24.5-travis
+ - EVM_EMACS=emacs-25.1-travis
+ - EVM_EMACS=emacs-25.2-travis
+ - EVM_EMACS=emacs-25.3-travis
+ - EVM_EMACS=emacs-26.1-travis
+
+before_install:
+
+ - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh
&& source ./x.sh
+ - evm install $EVM_EMACS --use --skip
+ - cask --verbose
+
+script:
+ - make
+
+notifications:
+ email: false
diff --git a/Cask b/Cask
new file mode 100644
index 0000000..bec5091
--- /dev/null
+++ b/Cask
@@ -0,0 +1,4 @@
+(source gnu)
+(source melpa)
+
+(package-file "dart-mode.el")
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..62deec5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+.PHONY: test
+
+test:
+ cask emacs -Q -batch -L . --eval "(require 'dart-mode)"