branch: externals/sql-indent
commit 915aca2a0908a1c36a5c5296646e18808eacc744
Author: Alex Harsányi <[email protected]>
Commit: GitHub <[email protected]>
Travis build and test support (#41)
Add Travis CI support to the repository
---
.travis.yml | 28 ++++++++++++++++++++++++++++
README.md | 2 ++
2 files changed, 30 insertions(+)
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..12ae353
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,28 @@
+language: emacs-lisp
+sudo: false
+cache:
+ - directories:
+ # Cache stable Emacs binaries (saves 1min per job)
+ - "$HOME/emacs/"
+
+# Allow Emacs snapshot builds to fail and don’t wait for these as they can
+# take a looooong time
+
+matrix:
+ fast_finish: true
+ allow_failures:
+ - env: EMACS_VERSION=snapshot
+env:
+ - EMACS_VERSION=25.2
+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/alex-hhh/emacs-travis/master/emacs-travis.mk'
+ # Install Emacs (according to $EMACS_VERSION)
+ - make -f emacs-travis.mk install_emacs
+install:
+ # Install your dependencies
+script:
+ - emacs -batch -Q --no-site-file -L . -f batch-byte-compile *.el
+ - emacs -batch -Q --no-site-file -L . -l sql-indent-test.el -f
ert-run-tests-batch-and-exit
diff --git a/README.md b/README.md
index 5073e04..e543194 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# Syntax based indentation for SQL files for GNU Emacs
+[](https://travis-ci.org/alex-hhh/emacs-sql-indent)
+
sql-indnent.el is a GNU Emacs minor mode which adds support for syntax-based
indentation when editing SQL code: TAB indents the current line based on the
syntax of the SQL code on previous lines. This works like the indentation for