Skip to content

Commit 67da174

Browse files
committed
Add CI
1 parent d33f017 commit 67da174

File tree

3 files changed

+74
-1
lines changed

3 files changed

+74
-1
lines changed

.github/workflows/test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
unix-test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
emacs-version:
15+
- 27.2
16+
- snapshot
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- uses: actions/setup-python@v2
22+
with:
23+
python-version: "3.6"
24+
architecture: "x64"
25+
26+
- uses: purcell/setup-emacs@master
27+
with:
28+
version: ${{ matrix.emacs-version }}
29+
30+
- uses: cask/setup-cask@master
31+
with:
32+
version: 0.8.4
33+
34+
- name: Setup cmake
35+
uses: jwlawson/[email protected]
36+
with:
37+
cmake-version: '3.18.x'
38+
39+
- name: Check cmake
40+
run: "cmake --version"
41+
42+
- name: Run tests
43+
run:
44+
make unix-ci

Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
SHELL := /usr/bin/env bash
2+
3+
EMACS ?= emacs
4+
CASK ?= cask
5+
6+
PKG-FILES := multi-shell.el
7+
8+
TEST-FILES := $(shell ls test/multi-shell-*.el)
9+
10+
.PHONY: clean checkdoc lint unix-build unix-compile unix-test
11+
12+
unix-ci: clean unix-build unix-compile
13+
14+
unix-build:
15+
$(CASK) install
16+
17+
unix-compile:
18+
@echo "Compiling..."
19+
@$(CASK) $(EMACS) -Q --batch \
20+
-L . \
21+
--eval '(setq byte-compile-error-on-warn t)' \
22+
-f batch-byte-compile $(PKG-FILES)
23+
24+
unix-test:
25+
@echo "Testing..."
26+
$(CASK) exec ert-runner -L . $(LOAD-TEST-FILES) -t '!no-win' -t '!org'
27+
28+
clean:
29+
rm -rf .cask *.elc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[![Build Status](https://travis-ci.com/jcs-elpa/multi-shell.svg?branch=master)](https://travis-ci.com/jcs-elpa/multi-shell)
21
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
2+
[![CI](https://github.com/jcs-elpa/multi-shell/actions/workflows/test.yml/badge.svg)](https://github.com/jcs-elpa/multi-shell/actions/workflows/test.yml)
33

44
# multi-shell
55
> Managing multiple shell buffers.

0 commit comments

Comments
 (0)