Skip to content

Commit

Permalink
Merge 96a1351 into dc99105
Browse files Browse the repository at this point in the history
  • Loading branch information
etu committed Nov 23, 2019
2 parents dc99105 + 96a1351 commit 0c1141f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 6 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Unit tests

on: [ "push", "pull_request" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
emacs_version:
- 26.1
- 26.2
- 26.3
- snapshot

steps:
- uses: actions/checkout@v1

- name: Install Nix
uses: cachix/install-nix-action@v6

- name: Install Emacs ${{ matrix.emacs_version }}
uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}

- name: Install cask
run: nix-env -iA nixpkgs.cask

- name: Install Emacs dependencies using Cask
run: cask install

- name: Run tests
run: make test

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ os:
# Allow Emacs snapshot and integration builds to fail
matrix:
allow_failures:
- env: EMACS_CI=emacs-snapshot
- env: EMACS_CI=emacs-26-3 INTEGRATION=yes

env:
- EMACS_CI=emacs-26-1
- EMACS_CI=emacs-26-2
- EMACS_CI=emacs-26-3
- EMACS_CI=emacs-snapshot
- EMACS_CI=emacs-26-3 INTEGRATION=yes

install:
Expand All @@ -27,7 +22,7 @@ install:

script:
# Run the tests if we shouldn't trigger the integrations
- if test -z "$INTEGRATION"; then make test; fi
- make test

# Otherwise we run the integration tests
- if test -n "$INTEGRATION"; then make integration; fi

0 comments on commit 0c1141f

Please sign in to comment.