aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-10-09 22:33:15 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-10-09 22:33:15 -0700
commita25c565f81ba9687de215ec9a8437f75ebee85d1 (patch)
treed6e77ed0eda53c5c18302e970630dedda20c74c0
parentfa18e3d7e1ba3c1d7ba3ec101a06b1c03aa40822 (diff)
downloadpandoc-a25c565f81ba9687de215ec9a8437f75ebee85d1.tar.gz
Added comment in .travis.yml to explain last change.
-rw-r--r--.travis.yml4
-rw-r--r--Makefile2
-rw-r--r--make_travis_yml.hs4
3 files changed, 7 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 5c42a24a6..7b91b71d9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -74,7 +74,9 @@ script:
- cabal build --ghc-options=$GHCOPTS # this builds all libraries and executables (including tests/benchmarks)
- cabal test
- cabal check
- - ./dist/setup/setup sdist # tests that a source-distribution can be generated
+# Test that a source-distribution can be generated
+# (with cabal >= 1.18 'cabal sdist' would work too):
+ - ./dist/setup/setup sdist
# Check that the resulting source distribution can be built & installed.
# If there are no other `.tar.gz` files in `dist`, this can be even simpler:
diff --git a/Makefile b/Makefile
index 3a52e3bd0..7c16418f8 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ dist: man/pandoc.1
cd pandoc-${version}
cabal configure ${CABALARGS} && cabal build && cabal test && cd .. && rm -rf "pandoc-${version}"
-.travis.yml: pandoc.cabal
+.travis.yml: pandoc.cabal make_travis_yml.hs
runghc make_travis_yml.hs $< > $@
debpkg: man/pandoc.1
diff --git a/make_travis_yml.hs b/make_travis_yml.hs
index 82d328018..91916c499 100644
--- a/make_travis_yml.hs
+++ b/make_travis_yml.hs
@@ -165,7 +165,9 @@ genTravisFromCabalFile fn xpkgs = do
, " - cabal build --ghc-options=$GHCOPTS # this builds all libraries and executables (including tests/benchmarks)"
, " - cabal test"
, " - cabal check"
- , " - ./dist/setup/setup sdist # tests that a source-distribution can be generated"
+ , "# Test that a source-distribution can be generated"
+ , "# (with cabal >= 1.18 'cabal sdist' would work too):"
+ , " - ./dist/setup/setup sdist"
, ""
, "# Check that the resulting source distribution can be built & installed."
, "# If there are no other `.tar.gz` files in `dist`, this can be even simpler:"