aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-02-11 14:41:54 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2020-02-11 16:17:51 +0100
commit5ecfe54d15471c2a4b4c71f412161c80f43fd63d (patch)
tree98333411d3a6a32a80856bf26da1f418fe0b1815 /.travis.yml
parent4909f2b993ebd08a10bee4f0eb8742d69211889a (diff)
downloaddotfiles-5ecfe54d15471c2a4b4c71f412161c80f43fd63d.tar.gz
dotfiles-5ecfe54d15471c2a4b4c71f412161c80f43fd63d.zip
ci: rebumped again how things are built
Following the example set by writer-mode, I feel much more comfortable with the nix approach of installing GNU Emacs (much more reliable on CI). Plus, I've also added a Makefile so things are easier to test. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml54
1 files changed, 18 insertions, 36 deletions
diff --git a/.travis.yml b/.travis.yml
index 53afa2a..5d9247c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,13 +1,10 @@
-# The procedure for testing GNU Emacs was kindly taken from:
-# https://github.com/purcell/emacs.d
+language: nix
-dist: trusty
-language: ruby
-
-before_install:
- - git clone https://github.com/rejeep/evm.git $HOME/.evm
- - export PATH=$HOME/.evm/bin:$PATH
+env:
+ - EMACS_CI=emacs-26-3
+ - EMACS_CI=emacs-snapshot
+install:
# mu4e
- sudo apt-get -qq update
- sudo apt-get install -y maildir-utils
@@ -17,37 +14,22 @@ before_install:
- sudo cp -r mu-1.0/mu4e /usr/share/emacs/site-lisp/
- popd
- - evm config path /tmp
- - evm install $EVM_EMACS --use --skip
-
- # shellcheck
- - sudo apt-get install -y shellcheck
+ # GNU Emacs itself through nix.
+ - bash <(curl https://raw.githubusercontent.com/purcell/nix-emacs-ci/master/travis-install)
- # rubocop
- - gem install rubocop
-
-env:
- - EVM_EMACS=emacs-25.3-travis
- - EVM_EMACS=emacs-26.1-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:
- allow_failures:
- - env: EVM_EMACS=emacs-git-snapshot-travis
-
-script:
- # Testing GNU Emacs
+ # Install the soria theme, which has been previously downloaded.
- git clone https://github.com/mssola/soria.git
- 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
+ # writer-mode
+ - mkdir -p $HOME/src/github.com/mssola/
+ - cd $HOME/src/github.com/mssola/
+ - git clone https://github.com/mssola/writer-mode.git
- # Shellcheck
- - cd ../.. && find . -name "*.sh" ! -name ".gitcompletion.sh" ! -name ".hgcompletion.sh" -not -path "./.emacs.d/*" -exec shellcheck \{\} \+
+ # Linters: shellcheck (shell) and rubocop (ruby).
+ - sudo apt-get install -y shellcheck ruby
+ - gem install rubocop
- # Ruby style
- - rubocop
+script:
+ - cd $TRAVIS_BUILD_DIR
+ - make test