Merge pull request #1891 from Emiller88/gh-actions

Add GitHub actions
This commit is contained in:
Henrik Lissner 2019-10-13 00:15:31 -04:00 committed by GitHub
commit 8017571b06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 51 deletions

39
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: CI
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
emacs_version:
- 25.3
- 26.1
- snapshot
include:
- emacs_version: 26.3
lint_ignore: 1
env:
EMACS_LINT_IGNORE: ${{ matrix.lint_ignore }}
steps:
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- uses: actions/checkout@v1
- name: Doom version
run: "bin/doom version"
- name: Run tests
run: "bin/doom test"
# FIXME
# name: Compile
# run: "bin/doom -y compile"

View File

@ -1,23 +0,0 @@
language: generic
dist: trusty
sudo: false
branches:
only:
- master
- develop
before_install:
- git clone https://github.com/rejeep/evm.git /home/travis/.evm
- export PATH="/home/travis/.evm/bin:$PATH"
- evm config path /tmp
- evm install $EVM_EMACS --use --skip
env:
- EVM_EMACS=emacs-25.3-travis
- EVM_EMACS=emacs-26.1-travis
- EVM_EMACS=emacs-git-snapshot-travis
matrix:
allow_failures:
- env: EVM_EMACS=emacs-git-snapshot-travis
script:
- bin/doom version
- bin/doom test
- bin/doom -y compile

View File

@ -4,11 +4,8 @@
<a href="https://emacs.org"> <a href="https://emacs.org">
<img src="https://img.shields.io/badge/Made_for-Emacs_25.3+-blueviolet.svg?style=for-the-badge" alt="Made for Emacs 25.3+"> <img src="https://img.shields.io/badge/Made_for-Emacs_25.3+-blueviolet.svg?style=for-the-badge" alt="Made for Emacs 25.3+">
</a> </a>
<a href="https://travis-ci.org/hlissner/doom-emacs"> <a href="https://github.org/hlissner/doom-emacs/actions">
<img src="https://img.shields.io/travis/hlissner/doom-emacs/master.svg?label=master&style=flat-square" alt="Build status: master"> <img src="https://github.com/hlissner/doom-emacs/workflows/CI/badge.svg" alt="Build status: develop">
</a>
<a href="https://travis-ci.org/hlissner/doom-emacs">
<img src="https://img.shields.io/travis/hlissner/doom-emacs/develop.svg?label=develop&style=flat-square" alt="Build status: develop">
</a> </a>
<a href="https://discord.gg/bcZ6P3y"> <a href="https://discord.gg/bcZ6P3y">
<img src="https://img.shields.io/badge/Discord-blue.svg?logo=discord&label=join&style=for-the-badge" alt="Join our discord server" align="right"> <img src="https://img.shields.io/badge/Discord-blue.svg?logo=discord&label=join&style=for-the-badge" alt="Join our discord server" align="right">
@ -29,24 +26,24 @@
<b><a href="docs/faq.org">FAQ</a></b> <b><a href="docs/faq.org">FAQ</a></b>
</p--> </p-->
- - - ---
**Quick start** **Quick start**
```bash ```bash
git clone https://github.com/hlissner/doom-emacs ~/.emacs.d git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
~/.emacs.d/bin/doom install ~/.emacs.d/bin/doom install
``` ```
**Table of Contents** **Table of Contents**
- [What is Doom Emacs](#what-is-doom-emacs) - [What is Doom Emacs](#what-is-doom-emacs)
- [Doom's mantras](#dooms-mantras) - [Doom's mantras](#dooms-mantras)
- [Feature highlights](#feature-highlights) - [Feature highlights](#feature-highlights)
- [Getting Help](#getting-help) - [Getting Help](#getting-help)
- [Contributing](#contributing) - [Contributing](#contributing)
# What is Doom Emacs
What is Doom Emacs
==================
<a href="http://ultravioletbat.deviantart.com/art/Yay-Evil-111710573"> <a href="http://ultravioletbat.deviantart.com/art/Yay-Evil-111710573">
<img src="https://github.com/hlissner/doom-emacs/raw/screenshots/cacochan.png" align="right" /> <img src="https://github.com/hlissner/doom-emacs/raw/screenshots/cacochan.png" align="right" />
@ -60,8 +57,8 @@ Doom is a configuration for [GNU Emacs](https://www.gnu.org/software/emacs/). It
can be used as framework for your own configuration, or as a resource for fellow can be used as framework for your own configuration, or as a resource for fellow
Emacs enthusiasts who want to learn more about our favorite OS. Emacs enthusiasts who want to learn more about our favorite OS.
Doom's mantras ## Doom's mantras
--------------
- **Gotta go fast.** Startup and runtime speed are priorities; many expensive, - **Gotta go fast.** Startup and runtime speed are priorities; many expensive,
heavy-handed packages have been modified to allow lazy loading or exploit heavy-handed packages have been modified to allow lazy loading or exploit
caching. caching.
@ -77,8 +74,8 @@ Doom's mantras
like. Use it as a complete Emacs distribution, a baseline for your own, or like. Use it as a complete Emacs distribution, a baseline for your own, or
anywhere in between. anywhere in between.
Feature Highlights ## Feature Highlights
------------------
- A fabulous, minimalistic interface and theme inspired by modern editors - A fabulous, minimalistic interface and theme inspired by modern editors
(particularly Atom and sublime text). (particularly Atom and sublime text).
- A modular architecture for your Emacs configuration with sane defaults. - A modular architecture for your Emacs configuration with sane defaults.
@ -93,7 +90,7 @@ Feature Highlights
and localleader prefix keys (<kbd>SPC</kbd> and <kbd>SPC</kbd><kbd>m</kbd>, by and localleader prefix keys (<kbd>SPC</kbd> and <kbd>SPC</kbd><kbd>m</kbd>, by
default). default).
- Indentation detection and [editorconfig][url:editorconfig] integration. Let - Indentation detection and [editorconfig][url:editorconfig] integration. Let
someone else argue about tabs vs ___***spaces***___. someone else argue about tabs vs **\_\***spaces**\*\_**.
- Code completion for many languages, powered by - Code completion for many languages, powered by
[company-mode][url:company-mode] (some may have external dependencies). [company-mode][url:company-mode] (some may have external dependencies).
- Project-awareness powered by [projectile][url:projectile], with tools and an - Project-awareness powered by [projectile][url:projectile], with tools and an
@ -111,9 +108,7 @@ Feature Highlights
"just work," resorting to mode-specific functionality, before falling back on "just work," resorting to mode-specific functionality, before falling back on
[dumb-jump][url:dumb-jump]. [dumb-jump][url:dumb-jump].
# Troubleshooting
Troubleshooting
===============
Encountered strange behavior or an error? Here are some things to try before you Encountered strange behavior or an error? Here are some things to try before you
shoot off that bug report: shoot off that bug report:
@ -132,14 +127,11 @@ behavior you've observed, the behavior you expected, and any error messages
or warnings logged to the \*Messages\* buffer (can be opened with <kbd>SPC h or warnings logged to the \*Messages\* buffer (can be opened with <kbd>SPC h
e</kbd> or `M-x view-echo-area-messages`). e</kbd> or `M-x view-echo-area-messages`).
It's a great help if you included a backtrace with errors, i.e. `M-x It's a great help if you included a backtrace with errors, i.e. `M-x toggle-debug-on-error` then recreating the error(s).
toggle-debug-on-error` then recreating the error(s).
We've also got [a Discord server][url:discord]. Hop on! We can help! We've also got [a Discord server][url:discord]. Hop on! We can help!
# Contributing
Contributing
============
Doom (and my Emacs work in general) is a labor of love and incurable madness, Doom (and my Emacs work in general) is a labor of love and incurable madness,
done on my spare time. If you'd like to support my work, I welcome done on my spare time. If you'd like to support my work, I welcome
@ -158,24 +150,20 @@ contributions:
great help. My work here contends with studies, ventures in indie gamedev, and great help. My work here contends with studies, ventures in indie gamedev, and
my freelance work. my freelance work.
[docs:wiki]: docs/index.org [docs:wiki]: docs/index.org
[docs:wiki-quickstart]: docs/getting-started.org [docs:wiki-quickstart]: docs/getting-started.org
[docs:wiki-modules]: docs/modules.org [docs:wiki-modules]: docs/modules.org
[docs:wiki-customization]: docs/customize.org [docs:wiki-customization]: docs/customize.org
[docs:contributing]: docs/contribute.org [docs:contributing]: docs/contribute.org
[docs:faq]: docs/faq.org [docs:faq]: docs/faq.org
[github:new-issue]: https://github.com/hlissner/doom-emacs/issues/new [github:new-issue]: https://github.com/hlissner/doom-emacs/issues/new
[doom:bindings]: modules/config/default/+evil-bindings.el [doom:bindings]: modules/config/default/+evil-bindings.el
[doom:commands]: modules/editor/evil/+commands.el [doom:commands]: modules/editor/evil/+commands.el
[doom:packages]: core/autoload/packages.el [doom:packages]: core/autoload/packages.el
[doom:popups]: modules/ui/popup/README.org [doom:popups]: modules/ui/popup/README.org
[url:discord]: https://discord.gg/bcZ6P3y [url:discord]: https://discord.gg/bcZ6P3y
[url:liberapay]: https://liberapay.com/hlissner/donate [url:liberapay]: https://liberapay.com/hlissner/donate
[url:paypal]: https://paypal.me/henriklissner/10 [url:paypal]: https://paypal.me/henriklissner/10
[url:company-mode]: https://github.com/company-mode/company-mode [url:company-mode]: https://github.com/company-mode/company-mode
[url:doom-themes]: https://github.com/hlissner/emacs-doom-themes [url:doom-themes]: https://github.com/hlissner/emacs-doom-themes
[url:dumb-jump]: https://github.com/jacktasia/dumb-jump [url:dumb-jump]: https://github.com/jacktasia/dumb-jump