[tests] use testelpa mirror

This commit is contained in:
JAremko 2020-09-05 14:25:08 +03:00 committed by Eugene Yaremenko
parent 6067c19be7
commit 62e6f110be
3 changed files with 21 additions and 2 deletions

View File

@ -10,6 +10,7 @@ on:
env:
TEST_SCRIPT: ./.github/workflows/scripts/test
TESTELPA_REPO: JAremko/testelpa-develop
GITHUB_WORKSPACE: ${{ github.workspace }}
defaults:
run:
@ -46,10 +47,10 @@ jobs:
run: |
curl -L \
https://github.com/$TESTELPA_REPO/releases/latest/download/elpa.zip \
--output elpa.zip
--output /tmp/elpa.zip
- name: Unpack elpa mirror
run: unzip elpa.zip -d testelpa_mirror
run: unzip /tmp/elpa.zip -d ../testelpa_mirror
- name: Dependencies installation
run: ${{ env.TEST_SCRIPT }} ${{ matrix.test_root }} installation

16
.github/workflows/scripts/dot_lock.el vendored Normal file
View File

@ -0,0 +1,16 @@
(setq configuration-layer-elpa-archives
`(("melpa" . "melpa.org/packages/")
("org" . "orgmode.org/elpa/")
("gnu" . "elpa.gnu.org/packages/")
("spacelpa" . ,(concat configuration-layer-stable-elpa-directory
"spacelpa-"
configuration-layer-stable-elpa-version))
("testelpa" . ,(format "%s/../testelpa_mirror"
(getenv "GITHUB_WORKSPACE")))))
(setq package-archive-priorities
'(("testelpa" . 9)
("spacelpa" . 8)
("melpa" . 4)
("org" . 2)
("gnu" . 1)))

View File

@ -17,6 +17,8 @@ abs_p() {
}
ln -s "$(pwd)" $HOME/.emacs.d
cp .github/workflows/scripts/dot_lock.el ~/.emacs.d/.lock
testdir=$(abs_p tests/$1)
cd ..