This commit is contained in:
JenChieh 2021-07-15 16:18:52 +08:00
parent a8bff6913f
commit 500d35f051
4 changed files with 83 additions and 2 deletions

44
.github/workflows/test.yml vendored Normal file
View 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
View 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
View 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

View file

@ -1,7 +1,7 @@
[![Build Status](https://travis-ci.com/emacs-vs/vs-light-theme.svg?branch=master)](https://travis-ci.com/emacs-vs/vs-light-theme)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![MELPA](https://melpa.org/packages/vs-light-theme-badge.svg)](https://melpa.org/#/vs-light-theme)
[![MELPA Stable](https://stable.melpa.org/packages/vs-light-theme-badge.svg)](https://stable.melpa.org/#/vs-light-theme)
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![CI](https://github.com/emacs-vs/vs-light-theme/actions/workflows/test.yml/badge.svg)](https://github.com/emacs-vs/vs-light-theme/actions/workflows/test.yml)
# vs-light-theme
> Visual Studio IDE light theme.