]> Sergey Matveev's repositories - zsh-autoenv.git/commitdiff
Travis: actually use different ZDOTDIRs (#83)
authorDaniel Hahler <github@thequod.de>
Fri, 15 Dec 2017 22:11:20 +0000 (23:11 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2017 22:11:20 +0000 (23:11 +0100)
.travis.yml
Makefile

index d45fe563df3a923e431e17b86c17e524438f07ce..98366887b8961c7c97846d3f78882eb1d58348ff 100644 (file)
@@ -18,4 +18,4 @@ install:
   - export SHELL=zsh
 script:
   - zsh --version
-  - make test
+  - make test ZDOTDIR=$ZDOTDIR
index b9ea8967e0604381b3a755e4dc36f09f08cd0767..a217a6b34cab00fb99700b277932564903b7206b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,15 @@
 # Default, can be overridden using "make test ZDOTDIR=...".
 ZDOTDIR:=${CURDIR}/tests/ZDOTDIR
-
-# Export it, and make it absolute.
-override export ZDOTDIR:=$(abspath $(ZDOTDIR))
+# Make it absolute.
+override ZDOTDIR:=$(abspath $(ZDOTDIR))
 
 TEST_SHELL:=zsh
 
 test:
-       cram --shell=$(TEST_SHELL) -v tests
+       ZDOTDIR=$(ZDOTDIR) cram --shell=$(TEST_SHELL) -v tests
 
 itest:
-       cram -i --shell=$(TEST_SHELL) tests
+       ZDOTDIR=$(ZDOTDIR) cram -i --shell=$(TEST_SHELL) tests
 
 # Run tests with all ZDOTDIRs.
 test_full: