Przeglądaj źródła

Make sure tests are run with un-compiled files

This is needed to make undercover.el work
Ryan C. Thompson 7 lat temu
rodzic
commit
98e46e9096
2 zmienionych plików z 4 dodań i 1 usunięć
  1. 1 0
      .travis.yml
  2. 3 1
      Makefile

+ 1 - 0
.travis.yml

@@ -32,4 +32,5 @@ before_script:
   - cask install
   - cask install
 
 
 script:
 script:
+  - make compile
   - make test
   - make test

+ 3 - 1
Makefile

@@ -6,7 +6,9 @@ ELC_FILES := $(patsubst %.el,%.elc,$(ELISP_FILES))
 
 
 all: test
 all: test
 
 
-test: compile
+# We run clean-elc because undercover.el doesn't support elc files
+test:
+	cask clean-elc
 	cask exec buttercup -L .
 	cask exec buttercup -L .
 
 
 compile: $(ELC_FILES)
 compile: $(ELC_FILES)