[tests] remove mirror related code
This commit is contained in:
parent
600804293e
commit
497d5308dc
|
@ -1,9 +1,6 @@
|
|||
name: elisp_tests
|
||||
name: elisp tests
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Every 4 hours
|
||||
- cron: '0 */4 * * *'
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
|
@ -13,14 +10,6 @@ on:
|
|||
env:
|
||||
TEST_SCRIPT: ./.github/workflows/scripts/test
|
||||
MIRROR_SCRIPT: ./.github/workflows/scripts/create_mirror
|
||||
EM_SCRIPT_PATH: $HOME/elpa-mirror.el
|
||||
MIRROR_DIR: $HOME/elpa
|
||||
MIRROR_NAME: elpa-mirror
|
||||
EM_SCRIPT_URL: "https://raw.githubusercontent.com/\
|
||||
redguardtoo/\
|
||||
elpa-mirror/\
|
||||
master/\
|
||||
elpa-mirror.el"
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
@ -28,7 +17,6 @@ defaults:
|
|||
|
||||
jobs:
|
||||
test:
|
||||
if: ${{ github.event_name != 'schedule' }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -52,17 +40,6 @@ jobs:
|
|||
version: ${{ matrix.emacs_version }}
|
||||
if: ${{ matrix.os == 'windows-latest' }}
|
||||
|
||||
- name: Download elpa mirror
|
||||
continue-on-error: true
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: ${{ env.MIRROR_NAME }}
|
||||
path: ${{ env.MIRROR_DIR }}
|
||||
|
||||
- name: List mirror content
|
||||
continue-on-error: true
|
||||
run: find ${{ env.MIRROR_DIR }}
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Dependencies installation
|
||||
|
@ -71,26 +48,3 @@ jobs:
|
|||
run: ${{ env.TEST_SCRIPT }} ${{ matrix.test_root }} unit_tests
|
||||
- name: Functional testing
|
||||
run: ${{ env.TEST_SCRIPT }} ${{ matrix.test_root }} func_tests
|
||||
|
||||
update_elpa_mirror:
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Emacs
|
||||
uses: purcell/setup-emacs@master
|
||||
with:
|
||||
version: 27.1
|
||||
|
||||
- name: Download elpa-mirror.el
|
||||
run: curl -o ${{ env.EM_SCRIPT_PATH }} ${{ env.EM_SCRIPT_URL }}
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Create local mirror
|
||||
run: ${{ env.MIRROR_SCRIPT }}
|
||||
|
||||
- name: Upload mirror artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ env.MIRROR_NAME }}
|
||||
path: ${{ env.MIRROR_DIR }}
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
## Script for updating local elpa mirror
|
||||
##
|
||||
## Copyright (c) 2012-2014 Sylvain Benner
|
||||
## Copyright (c) 2014-2020 Sylvain Benner & Contributors
|
||||
##
|
||||
## Author: Eugene Yaremenko
|
||||
## URL: https://github.com/syl20bnr/spacemacs
|
||||
##
|
||||
## This file is not part of GNU Emacs.
|
||||
##
|
||||
## License: GPLv3
|
||||
|
||||
cp "${GITHUB_WORKSPACE}/.github/workflows/scripts/dotspacemacs.el" \
|
||||
~/.spacemacs
|
||||
|
||||
ln -s "$(pwd)" $HOME/.emacs.d
|
||||
|
||||
mkdir -p "${MIRROR_DIR}"
|
||||
|
||||
emacs --batch \
|
||||
-l "${HOME}/.emacs.d/init.el" \
|
||||
-l "${EM_SCRIPT_PATH}" \
|
||||
--eval="(setq elpamr-default-output-directory \"${MIRROR_DIR}\")" \
|
||||
--eval="(elpamr-create-mirror-for-installed)"
|
|
@ -1,7 +0,0 @@
|
|||
(defun dotspacemacs/layers ()
|
||||
(setq-default
|
||||
dotspacemacs-distribution 'spacemacs))
|
||||
(defun dotspacemacs/init ())
|
||||
(defun dotspacemacs/user-init ())
|
||||
(defun dotspacemacs/config ())
|
||||
(defun dotspacemacs/user-config ())
|
Loading…
Reference in New Issue