aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2019-09-05 14:00:25 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2019-09-05 16:46:12 +0200
commit99f78178964d12e3a8ae6cc4aebf894320e562df (patch)
tree1c780d0b9d4740a41616ae716decbc469a102d8d /.travis.yml
parent0f3444ced75558884334a99fc04b9c72b1924e42 (diff)
downloaddotfiles-99f78178964d12e3a8ae6cc4aebf894320e562df.tar.gz
dotfiles-99f78178964d12e3a8ae6cc4aebf894320e562df.zip
Added linters and polished code
The minimum version supported has been raised to 25.3. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml21
1 files changed, 13 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 2e041e7..53afa2a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,7 @@
# The procedure for testing GNU Emacs was kindly taken from:
# https://github.com/purcell/emacs.d
+dist: trusty
language: ruby
before_install:
@@ -10,9 +11,11 @@ before_install:
# mu4e
- sudo apt-get -qq update
- sudo apt-get install -y maildir-utils
+ - pushd /tmp
- wget https://github.com/djcb/mu/releases/download/v1.0/mu-1.0.tar.xz
- tar xJvf mu-1.0.tar.xz
- sudo cp -r mu-1.0/mu4e /usr/share/emacs/site-lisp/
+ - popd
- evm config path /tmp
- evm install $EVM_EMACS --use --skip
@@ -20,12 +23,14 @@ before_install:
# shellcheck
- sudo apt-get install -y shellcheck
+ # rubocop
+ - gem install rubocop
+
env:
- - EVM_EMACS=emacs-25.1-travis
- - EVM_EMACS=emacs-25.2-travis
- EVM_EMACS=emacs-25.3-travis
- EVM_EMACS=emacs-26.1-travis
- - EVM_EMACS=emacs-26.2-travis
+ # GNU Emacs 26.2 refuses to work on Travis because of the bug on fetching
+ # elpa.gnu.org. It works locally for me.
- EVM_EMACS=emacs-git-snapshot-travis
matrix:
@@ -35,14 +40,14 @@ matrix:
script:
# Testing GNU Emacs
- git clone https://github.com/mssola/soria.git
- - cp soria/soria-theme.el emacs/soria-theme.el
- - lsb_release -a && cd emacs && ./test-startup.sh
+ - cp soria/soria-theme.el .emacs.d/soria-theme.el
+ - lsb_release -a && cd .emacs.d && ./test-emacs.sh
# Testing scripts
- cd ../bin/test && ./test.sh
# Shellcheck
- # TODO: don't skip stuff like bashrc and many others
- - cd ../.. && find . -name "*.sh" ! -name "gitcompletion.sh" ! -name "hgcompletion.sh" -exec shellcheck \{\} \+
+ - cd ../.. && find . -name "*.sh" ! -name ".gitcompletion.sh" ! -name ".hgcompletion.sh" -not -path "./.emacs.d/*" -exec shellcheck \{\} \+
- # TODO: linters for emacs, perl, ruby
+ # Ruby style
+ - rubocop