Browse Source

Add more elpa archives

master
Damien Cassou 10 months ago
parent
commit
d7921f72fe
Signed by: DamienCassou GPG Key ID: B68746238E59B548
3 changed files with 35 additions and 5 deletions
  1. +2
    -1
      README.org
  2. +7
    -4
      makel.mk
  3. +26
    -0
      test/run-tests.sh

+ 2
- 1
README.org View File

@ -70,7 +70,8 @@ your Makefile:
ELPA_DEPENDENCIES=package-lint
# List of package archives to download above dependencies
# from. Available archives are: gnu, melpa, melpa-stable and org:
# from. Available archives are: gnu (aka elpa), elpa-devel, nongnu,
# melpa, melpa-stable and org:
ELPA_ARCHIVES=melpa
# List of ERT test files:


+ 7
- 4
makel.mk View File

@ -4,10 +4,13 @@ MAKEL_LOAD_PATH=-L . $(patsubst %,-L ../%,$(ELPA_DEPENDENCIES))
MAKEL_SET_ARCHIVES0=${ELPA_ARCHIVES}
MAKEL_SET_ARCHIVES1=$(patsubst gnu,(cons \"gnu\" \"https://elpa.gnu.org/packages/\"),${MAKEL_SET_ARCHIVES0})
MAKEL_SET_ARCHIVES2=$(patsubst melpa,(cons \"melpa\" \"https://melpa.org/packages/\"),${MAKEL_SET_ARCHIVES1})
MAKEL_SET_ARCHIVES3=$(patsubst melpa-stable,(cons \"melpa-stable\" \"https://stable.melpa.org/packages/\"),${MAKEL_SET_ARCHIVES2})
MAKEL_SET_ARCHIVES4=$(patsubst org,(cons \"org\" \"https://orgmode.org/elpa/\"),${MAKEL_SET_ARCHIVES3})
MAKEL_SET_ARCHIVES=(setq package-archives (list ${MAKEL_SET_ARCHIVES4}))
MAKEL_SET_ARCHIVES2=$(patsubst elpa,(cons \"elpa\" \"https://elpa.gnu.org/packages/\"),${MAKEL_SET_ARCHIVES1}) # alias of the previous one
MAKEL_SET_ARCHIVES3=$(patsubst elpa-devel,(cons \"gnu\" \"https://elpa.gnu.org/devel/\"),${MAKEL_SET_ARCHIVES2})
MAKEL_SET_ARCHIVES4=$(patsubst nongnu,(cons \"nongnu\" \"https://elpa.nongnu.org/nongnu/\"),${MAKEL_SET_ARCHIVES3})
MAKEL_SET_ARCHIVES5=$(patsubst melpa,(cons \"melpa\" \"https://melpa.org/packages/\"),${MAKEL_SET_ARCHIVES4})
MAKEL_SET_ARCHIVES6=$(patsubst melpa-stable,(cons \"melpa-stable\" \"https://stable.melpa.org/packages/\"),${MAKEL_SET_ARCHIVES5})
MAKEL_SET_ARCHIVES7=$(patsubst org,(cons \"org\" \"https://orgmode.org/elpa/\"),${MAKEL_SET_ARCHIVES6})
MAKEL_SET_ARCHIVES=(setq package-archives (list ${MAKEL_SET_ARCHIVES7}))
EMACSBIN?=emacs
BATCH=$(EMACSBIN) -Q --batch $(MAKEL_LOAD_PATH) \


+ 26
- 0
test/run-tests.sh View File

@ -69,6 +69,32 @@ function check_exit_failure {
fi
}
####################################
# Tests - ELPA ARCHIVES
####################################
# Check that package-archives is populated properly
run ELPA_ARCHIVES=gnu debug
check_output "https://elpa.gnu.org/packages"
run ELPA_ARCHIVES=elpa debug
check_output "https://elpa.gnu.org/packages"
run ELPA_ARCHIVES=elpa-devel debug
check_output "https://elpa.gnu.org/devel"
run ELPA_ARCHIVES=nongnu debug
check_output "https://elpa.nongnu.org/nongnu"
run ELPA_ARCHIVES=melpa debug
check_output "https://melpa.org/packages"
run ELPA_ARCHIVES=melpa-stable debug
check_output "https://stable.melpa.org/packages"
run ELPA_ARCHIVES=org debug
check_output "https://orgmode.org/elpa"
####################################
# Tests - CI-DEPENDENCIES
####################################


Loading…
Cancel
Save