From 9e17cb9a4b21caadab9867b5e27f3985b2dbbaa0 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 17 Apr 2016 19:50:24 -0400 Subject: Set up Travis --- .travis.yml | 24 ++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a6e95a8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: emacs-lisp + +env: + matrix: + - EMACS=emacs24 + - EMACS=emacs-snapshot + +install: + - if [ "$EMACS" = "emacs24" ]; then + sudo add-apt-repository -y ppa:cassou/emacs && + sudo apt-get update -qq && + sudo apt-get install -qq emacs24 emacs24-el; + fi + - if [ "$EMACS" = "emacs-snapshot" ]; then + sudo add-apt-repository -y ppa:ubuntu-elisp/ppa && + sudo apt-get update -qq && + sudo apt-get install -qq emacs-snapshot; + fi + +before_script: + make .deps + +script: + make test EMACS=${EMACS} diff --git a/README.md b/README.md index 67b560d..a126404 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ +[![Build Status](https://travis-ci.org/kyleam/snakemake-mode.svg?branch=master)](https://travis-ci.org/kyleam/snakemake-mode) + This repo contains two Emacs libraries for [Snakemake]. * [snakemake-mode.el] provides a major mode for editing Snakemake -- cgit v1.2.3