language: generic
env:
global:
- CURL="curl -fsSkL --retry 9 --retry-delay 9"
matrix:
# - EMACS=emacs24 ## This is 24.3 which is too old to run magit
- EMACS=emacs-snapshot
# matrix:
# allow_failures:
# - env: EMACS=emacs-snapshot
install:
- if [ "$EMACS" = 'emacs24' ]; then
sudo add-apt-repository -y ppa:cassou/emacs &&
sudo apt-get -qq update &&
sudo apt-get -qq -f install &&
sudo apt-get -qq install emacs24 &&
sudo apt-get -qq install emacs24-el;
fi
- if [ "$EMACS" = 'emacs-snapshot' ]; then
sudo add-apt-repository -y ppa:ubuntu-elisp/ppa &&
sudo apt-get -qq update &&
sudo apt-get -qq -f install &&
sudo apt-get -qq install emacs-snapshot &&
sudo apt-get -qq install emacs-snapshot-el;
fi
- $CURL https://raw.githubusercontent.com/magnars/dash.el/master/dash.el -o dash.el
- $CURL https://raw.githubusercontent.com/magit/with-editor/master/with-editor.el -o with-editor.el
- $EMACS --version
script:
- git config --global user.name "A U Thor"
- git config --global user.email a.u.thor@example.com
- git tag 0
- make lisp EMACSBIN=$EMACS DASH_DIR=$PWD
- make test EMACSBIN=$EMACS DASH_DIR=$PWD
notifications:
email:
# Default is change, but that includes a new branch's 1st success.
on_success: never
on_failure: always # The default.