2018-03-18 18:17:38 +00:00
|
|
|
version: 2.0
|
|
|
|
|
|
|
|
# Default actions to perform on each Emacs version
|
|
|
|
default: &default-steps
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-05-06 10:14:25 +00:00
|
|
|
- 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 19:51:37 +00:00
|
|
|
- run:
|
|
|
|
name: Update APT packages
|
|
|
|
command: apt-get update
|
|
|
|
- run:
|
|
|
|
name: Install prerequisites
|
|
|
|
command: apt-get install -y openjdk-8-jre make python git
|
|
|
|
- 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 18:17:38 +00:00
|
|
|
|
|
|
|
# Enumerated list of Emacs versions
|
|
|
|
jobs:
|
|
|
|
test-emacs-25:
|
|
|
|
docker:
|
|
|
|
- image: silex/emacs:25
|
|
|
|
entrypoint: bash
|
|
|
|
<<: *default-steps
|
|
|
|
|
|
|
|
test-emacs-26:
|
|
|
|
docker:
|
|
|
|
- image: silex/emacs:26.0
|
|
|
|
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
|
2018-08-14 20:56:58 +00:00
|
|
|
# Testing against master currently hangs on CircleCI
|
|
|
|
#- test-emacs-master
|