language: emacs-lisp
sudo: false

env:
  - EMACS_TARGET=emacs-24.3 ERROR_ON_WARN=nil
  - EMACS_TARGET=emacs-24.4 ERROR_ON_WARN=t
  - EMACS_TARGET=emacs-24.5 ERROR_ON_WARN=t
  - EMACS_TARGET=emacs-25.1 ERROR_ON_WARN=t
  - EMACS_TARGET=emacs-25.2 ERROR_ON_WARN=t
  - EMACS_TARGET=emacs-git  ERROR_ON_WARN=t

before_install:
  - export PATH=$HOME/.cask/bin:$HOME/bin:$PATH
  - make -f Makefile.travis before_install

install:
  - make -f Makefile.travis install

script:
  - emacs --version
  - make -f Makefile.travis script

language: emacs-lisp
sudo: false

matrix:
  fast_finish: true
  allow_failures:
    - env: EMACS_TARGET=emacs-git  ERROR_ON_WARN=t

env:
  - EMACS_TARGET=emacs-24.3 ERROR_ON_WARN=nil
  - EMACS_TARGET=emacs-24.4 ERROR_ON_WARN=t
  - EMACS_TARGET=emacs-24.5 ERROR_ON_WARN=t
  - EMACS_TARGET=emacs-25.1 ERROR_ON_WARN=t
  - EMACS_TARGET=emacs-25.2 ERROR_ON_WARN=t
  - EMACS_TARGET=emacs-git  ERROR_ON_WARN=t

before_install:
  - export PATH=$HOME/.cask/bin:$HOME/bin:$PATH
  - make -f Makefile.travis before_install

install:
  - make -f Makefile.travis install

script:
  - emacs --version
  - make -f Makefile.travis script

Allow Emacs from trunk to fail (due to Cask problems)
build: Allow Emacs from trunk to fail (due to Cask problems)
