2018-03-18 19:17:38 +01:00
|
|
|
version: 2.0
|
|
|
|
|
|
|
|
# Default actions to perform on each Emacs version
|
|
|
|
default: &default-steps
|
|
|
|
steps:
|
2018-08-14 21:51:37 +02:00
|
|
|
- run:
|
|
|
|
name: Update APT packages
|
|
|
|
command: apt-get update
|
|
|
|
- run:
|
|
|
|
name: Install prerequisites
|
2019-08-21 17:20:22 +02:00
|
|
|
command: apt-get install -y openjdk-11-jre make python git
|
2019-08-22 11:31:36 +02:00
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
# Note: this makes it hard to reproduce builds but easier to spot incompatibilities with
|
|
|
|
# newer PlantUML releases. Current trade off seems acceptable.
|
|
|
|
name: Download the latest PlantUML release
|
|
|
|
command: sh ./bin/download-plantuml.sh
|
2018-08-14 21:51:37 +02:00
|
|
|
- run:
|
|
|
|
name: Install cask
|
|
|
|
command: curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
|
|
|
|
- run:
|
|
|
|
name: Make Cask available on the path
|
|
|
|
command: echo 'export PATH="/root/.cask/bin:$PATH"' >> $BASH_ENV
|
|
|
|
- run:
|
|
|
|
name: Run the tests
|
|
|
|
command: make
|
2018-03-18 19:17:38 +01:00
|
|
|
|
|
|
|
# Enumerated list of Emacs versions
|
|
|
|
jobs:
|
|
|
|
test-emacs-25:
|
|
|
|
docker:
|
|
|
|
- image: silex/emacs:25
|
|
|
|
entrypoint: bash
|
|
|
|
<<: *default-steps
|
|
|
|
|
|
|
|
test-emacs-26:
|
|
|
|
docker:
|
2019-08-22 11:31:36 +02:00
|
|
|
- image: silex/emacs:26
|
2018-03-18 19:17:38 +01:00
|
|
|
entrypoint: bash
|
|
|
|
<<: *default-steps
|
|
|
|
|
|
|
|
test-emacs-master:
|
|
|
|
docker:
|
|
|
|
- image: silex/emacs:master
|
|
|
|
entrypoint: bash
|
|
|
|
<<: *default-steps
|
|
|
|
|
|
|
|
# Executing in parallel
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
ci-test-matrix:
|
|
|
|
jobs:
|
|
|
|
- test-emacs-25
|
|
|
|
- test-emacs-26
|
2019-08-25 11:03:29 +02:00
|
|
|
# Testing against master currently hangs on CircleCI
|
|
|
|
# - test-emacs-master
|