[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 7f03a23 07/36: Change Emacs installation method for Travis
From: |
Noam Postavsky |
Subject: |
[elpa] master 7f03a23 07/36: Change Emacs installation method for Travis CI |
Date: |
Sat, 11 Jun 2016 19:21:09 +0000 (UTC) |
branch: master
commit 7f03a2319eba95a5117f0424df6990e4d02741a8
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>
Change Emacs installation method for Travis CI
* .travis.yml: Don't use sudo, submodules.
(env): Test with additional Emacs versions.
(install): Get Emacs binaries from
https://github.com/npostavs/emacs-travis/releases. Download ert and
cl-lib if needed.
(script): Split compilation and testing into separate steps.
* Rakefile: Use batch-byte-compile. Treat compilation warnings as
errors.
---
.travis.yml | 36 ++++++++++++++++++++----------------
Rakefile | 3 ++-
2 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 4bd7940..72aa314 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,24 +1,28 @@
-language: emacs
+language: generic
+sudo: false
+git:
+ submodules: false
env:
- - "EMACS=emacs23"
- - "EMACS=emacs24"
+ - EMACS_VERSION=23.4
+ - EMACS_VERSION=24.3
+ - EMACS_VERSION=24.5
+ - EMACS_VERSION=25-prerelease
install:
- - if [ "$EMACS" = "emacs23" ]; then
- sudo apt-get -qq update &&
- sudo apt-get -qq -f install &&
- sudo apt-get -qq install emacs23-nox &&
- curl -LO
https://raw.githubusercontent.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert.el
&&
- curl -LO
https://raw.githubusercontent.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert-x.el
&&
- curl -Lo cl-lib.el http://elpa.gnu.org/packages/cl-lib-0.5.el;
+ - curl -LO
https://github.com/npostavs/emacs-travis/releases/download/bins/emacs-bin-${EMACS_VERSION}.tar.gz
+ - tar -xaf emacs-bin-${EMACS_VERSION}.tar.gz -C /
+ # Configure $PATH: Emacs installed to /tmp/emacs
+ - export PATH=/tmp/emacs/bin:${PATH}
+ - if ! emacs -Q --batch --eval "(require 'cl-lib)" ; then
+ curl -Lo cl-lib.el http://elpa.gnu.org/packages/cl-lib-0.5.el ;
fi
- - 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-nox;
+ - if ! emacs -Q --batch --eval "(require 'ert)" ; then
+ curl -LO
https://raw.githubusercontent.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert.el
&&
+ curl -LO
https://raw.githubusercontent.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert-x.el
;
fi
+ - emacs --version
script:
- - rake compile; rake tests
+ - rake compile
+ - rake tests
diff --git a/Rakefile b/Rakefile
index 2965eb9..9986b75 100644
--- a/Rakefile
+++ b/Rakefile
@@ -94,7 +94,8 @@ end
desc "Compile yasnippet.el into yasnippet.elc"
rule '.elc' => '.el' do |t|
- sh "#{$EMACS} --batch -L . --eval \"(byte-compile-file
\\\"#{t.source}\\\")\""
+ sh "#{$EMACS} --batch -L . --eval \"(setq byte-compile-error-on-warn t)\"" +
+ " -f batch-byte-compile #{t.source}"
end
task :compile => FileList["yasnippet.el"].ext('elc')
- [elpa] master 146b161 25/36: Don't indent empty lines in snippet expansion, (continued)
- [elpa] master 146b161 25/36: Don't indent empty lines in snippet expansion, Noam Postavsky, 2016/06/11
- [elpa] master e9406f5 26/36: Document $> and fix escaping, Noam Postavsky, 2016/06/11
- [elpa] master 6f97316 27/36: Fix outdated and misformatted docs, Noam Postavsky, 2016/06/11
- [elpa] master bd30a30 04/36: yas-dont-activate is a hook, Noam Postavsky, 2016/06/11
- [elpa] master c1b2cb7 17/36: Improve documentation for new register option, Noam Postavsky, 2016/06/11
- [elpa] master 4c6064c 01/36: Avoid potential problems with user's hooks, Noam Postavsky, 2016/06/11
- [elpa] master 5d44a9f 19/36: Revert "Disable region wrapping for trigger key expansion", Noam Postavsky, 2016/06/11
- [elpa] master beb2ba4 21/36: Fix fields following $0 + region insertion, Noam Postavsky, 2016/06/11
- [elpa] master eeb4b62 14/36: Add new tests for multi-line mirror indentation, Noam Postavsky, 2016/06/11
- [elpa] master 78fe979 22/36: Support htmlize.el in Rakefile doc target, Noam Postavsky, 2016/06/11
- [elpa] master 7f03a23 07/36: Change Emacs installation method for Travis CI,
Noam Postavsky <=
- [elpa] master 0d79e69 30/36: Extra measures to prevent premature yas-minor-mode, Noam Postavsky, 2016/06/11
- [elpa] master 497867c 32/36: Rename yas-backport-obsolete-alias, Noam Postavsky, 2016/06/11
- [elpa] master e23a053 34/36: Avoid bug in insert-file-contents with REPLACE=t, Noam Postavsky, 2016/06/11
- [elpa] master 567ada0 06/36: Decide field clearing based on command's effect, Noam Postavsky, 2016/06/11
- [elpa] master bdfab67 24/36: Make yasnippet less chatty, Noam Postavsky, 2016/06/11
- [elpa] master bbfa1f0 31/36: Add yas-backport-obsolete-alias option, Noam Postavsky, 2016/06/11
- [elpa] master bfe14f1 10/36: Test and fix problem with mirror+autofill, Noam Postavsky, 2016/06/11
- [elpa] master df229b9 23/36: Fix some doc formatting, Noam Postavsky, 2016/06/11
- [elpa] master 1b8f5b7 29/36: Don't use major-mode syntax-propertize-function, Noam Postavsky, 2016/06/11
- [elpa] master 47dbe93 33/36: Fix broken links in README.mdown, Noam Postavsky, 2016/06/11