mirror of
https://github.com/emacs-vs/vs-light-theme.git
synced 2025-12-05 18:20:30 -08:00
Add CI
This commit is contained in:
parent
a8bff6913f
commit
500d35f051
4 changed files with 83 additions and 2 deletions
44
.github/workflows/test.yml
vendored
Normal file
44
.github/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
unix-test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
emacs-version:
|
||||
- 27.2
|
||||
- snapshot
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: "3.6"
|
||||
architecture: "x64"
|
||||
|
||||
- uses: purcell/setup-emacs@master
|
||||
with:
|
||||
version: ${{ matrix.emacs-version }}
|
||||
|
||||
- uses: cask/setup-cask@master
|
||||
with:
|
||||
version: 0.8.4
|
||||
|
||||
- name: Setup cmake
|
||||
uses: jwlawson/actions-setup-cmake@v1.4
|
||||
with:
|
||||
cmake-version: '3.18.x'
|
||||
|
||||
- name: Check cmake
|
||||
run: "cmake --version"
|
||||
|
||||
- name: Run tests
|
||||
run:
|
||||
make unix-ci
|
||||
8
Cask
Normal file
8
Cask
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(source melpa)
|
||||
|
||||
(package-file "vs-light-theme.el")
|
||||
|
||||
(files "vs-light-theme.el")
|
||||
|
||||
(development
|
||||
(depends-on "ert-runner"))
|
||||
29
Makefile
Normal file
29
Makefile
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
SHELL := /usr/bin/env bash
|
||||
|
||||
EMACS ?= emacs
|
||||
CASK ?= cask
|
||||
|
||||
PKG-FILES := vs-light-theme.el
|
||||
|
||||
TEST-FILES := $(shell ls test/vs-light-theme-*.el)
|
||||
|
||||
.PHONY: clean checkdoc lint unix-build unix-compile unix-test
|
||||
|
||||
unix-ci: clean unix-build unix-compile
|
||||
|
||||
unix-build:
|
||||
$(CASK) install
|
||||
|
||||
unix-compile:
|
||||
@echo "Compiling..."
|
||||
@$(CASK) $(EMACS) -Q --batch \
|
||||
-L . \
|
||||
--eval '(setq byte-compile-error-on-warn t)' \
|
||||
-f batch-byte-compile $(PKG-FILES)
|
||||
|
||||
unix-test:
|
||||
@echo "Testing..."
|
||||
$(CASK) exec ert-runner -L . $(LOAD-TEST-FILES) -t '!no-win' -t '!org'
|
||||
|
||||
clean:
|
||||
rm -rf .cask *.elc
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
[](https://travis-ci.com/emacs-vs/vs-light-theme)
|
||||
[](https://www.gnu.org/licenses/gpl-3.0)
|
||||
[](https://melpa.org/#/vs-light-theme)
|
||||
[](https://stable.melpa.org/#/vs-light-theme)
|
||||
[](https://www.gnu.org/licenses/gpl-3.0)
|
||||
[](https://github.com/emacs-vs/vs-light-theme/actions/workflows/test.yml)
|
||||
|
||||
# vs-light-theme
|
||||
> Visual Studio IDE light theme.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue