summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 1fb678dc80c5597d259e3ae7a692da0a7fbc642d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: nix

cache:
  directories:
    - ledger-master
    - ledger-next

os:
    - linux
    # - osx # Travis is saturated; see https://www.traviscistatus.com/

env:
  - EMACS_CI=emacs-24-3 LEDGER_VERSION=stable
  - EMACS_CI=emacs-24-4 LEDGER_VERSION=stable
  - EMACS_CI=emacs-24-5 LEDGER_VERSION=stable
  - EMACS_CI=emacs-25-1 LEDGER_VERSION=stable
  - EMACS_CI=emacs-25-2 LEDGER_VERSION=stable
  - EMACS_CI=emacs-25-3 LEDGER_VERSION=stable
  - EMACS_CI=emacs-26-1 LEDGER_VERSION=stable
  - EMACS_CI=emacs-26-2 LEDGER_VERSION=stable
  - EMACS_CI=emacs-26-3 LEDGER_VERSION=stable
  - EMACS_CI=emacs-snapshot LEDGER_VERSION=snapshot

matrix:
  allow_failures:
    - env: EMACS_CI=emacs-snapshot LEDGER_VERSION=snapshot

install:
  - bash <(curl https://raw.githubusercontent.com/purcell/nix-emacs-ci/master/travis-install)
  - tools/install-ledger.sh $LEDGER_VERSION

script:
  - emacs --version
  - ledger --version
  - emacs --eval "(setq byte-compile-error-on-warn (>= emacs-major-version 25))" -L .  --batch -f batch-byte-compile *.el
  - make -C test test-batch

after_script:
  - make -C test checkdoc

notifications:
  email: false