Commit graph

223 commits

Author SHA1 Message Date
John MacFarlane
c3e6eacdc8 Travis: only use fancy warnings for recent ghc. 2017-08-08 21:24:55 -07:00
John MacFarlane
2f0bff0f54 Use extra ghc warnings.
In addition to `-Wall`:
 `-Wincomplete-uni-patterns -Wincomplete-record-updates -Wredundant-constraints -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances`
2017-08-08 20:29:37 -07:00
John MacFarlane
862d92f09a Revert "Travis: Try not caching .cabal."
This reverts commit 5370c38203.
2017-07-24 18:45:49 +02:00
John MacFarlane
54777dfbd1 Revert "Travis: try not caching .ghc."
This reverts commit 434309802c.
2017-07-24 18:45:42 +02:00
John MacFarlane
434309802c Travis: try not caching .ghc. 2017-07-24 17:32:17 +02:00
John MacFarlane
5370c38203 Travis: Try not caching .cabal.
Hoping this solves the problems with recent builds.
2017-07-24 16:30:56 +02:00
John MacFarlane
214e7919b7 Revert "Use cabal-2.0 for 8.2.1 (#3814)"
This reverts commit d8f07fad09.
2017-07-24 11:45:54 +02:00
Matthew Pickering
d8f07fad09 Use cabal-2.0 for 8.2.1 (#3814) 2017-07-24 00:11:30 +02:00
John MacFarlane
3267af23f0 Travis: Removed ghc 8.2.1 build from allowed failures. 2017-07-15 19:39:58 +02:00
John MacFarlane
247257ed3e Travis: cabal build for ghc 8.2.1 RC. 2017-07-13 21:51:26 +02:00
John MacFarlane
9c79a518ac Revert "Added a travis build on ghc 8.2 release candidate."
This reverts commit 62915a8af1.
2017-07-13 21:49:37 +02:00
John MacFarlane
62915a8af1 Added a travis build on ghc 8.2 release candidate. 2017-07-13 21:43:24 +02:00
John MacFarlane
3890e50f11 .travis.yml - removed hsb2hs stuff. 2017-06-04 15:59:05 +02:00
John MacFarlane
a85d7849fc More travis fixes. 2017-03-20 17:22:48 +01:00
John MacFarlane
9836111cd2 Travis: install hsb2hs. 2017-03-20 16:19:19 +01:00
John MacFarlane
7f89792d9a More travis fixes. 2017-03-20 16:07:17 +01:00
John MacFarlane
757edd0525 More travis fixes. 2017-03-20 15:55:42 +01:00
John MacFarlane
5a1c9109e0 Fixed .travis.yml. 2017-03-20 15:43:15 +01:00
John MacFarlane
51ed4a98a9 .travis.yml: create a source dist and do cabal build and test there.
That way we catch errors due to files missing from the data
section of pandoc.cabal.
2017-03-20 15:24:16 +01:00
John MacFarlane
5487190d69 Travis: Remove GHC HEAD build.
This pretty much always fails due to dependencies.
2017-03-08 12:57:49 +01:00
John MacFarlane
19ad29f493 Travis: comment out OSX build.
This always takes forever to complete.
Since I develop on OSX anyway, it's not so urgent.
2017-03-08 12:57:07 +01:00
John MacFarlane
b6ad920db8 Travis: move 7.8.4 out of allowed-failures. 2017-02-20 16:39:37 +01:00
John MacFarlane
56474b91f2 Travis: remove 8.0.1 build. 2017-02-20 16:34:53 +01:00
John MacFarlane
1e694805a1 stack.yamls: Use lts-8.0. 2017-02-12 19:16:53 +01:00
John MacFarlane
7e60fd224e Travis: allow ghc 7.8.4 to fail. For now anyway. 2017-01-25 17:07:41 +01:00
ickc
74875695e2 travis: catch #3372 (#3373) 2017-01-24 10:29:54 +01:00
ickc
117f3d2323 travis: download stack only in stack BUILD (#3357) 2017-01-17 14:09:02 +01:00
John MacFarlane
d1e957775a Travis: fix false positives and speed up dist build by avoiding tests. 2016-12-30 21:18:47 -07:00
John MacFarlane
8f09a2b010 Travis: add path to happy to path. 2016-12-24 14:41:13 -07:00
John MacFarlane
b872765765 Added happy to travis deb pkgs. 2016-12-23 21:16:17 -07:00
ickc
3354f5a0ca Speed up Travis (#3304)
* travis: fast_finish

* travis: cabal use `-j` whenever appropriate

* travis: remove stack nightly in osx build to speed up
2016-12-13 14:19:25 +01:00
ickc
fdc5674045 travis: use language generic (#3267) 2016-11-30 12:46:50 +01:00
John MacFarlane
99287f4754 Add comment acknowledging source of .travis.yml. 2016-11-16 12:00:12 +01:00
John MacFarlane
5ec7331349 Travis: Set ulimit -n 4096 before build. This seems necessary on OSX. 2016-10-23 21:56:08 +02:00
John MacFarlane
95d3966601 Travis: add to end of path to avoid a warning. 2016-10-23 21:51:07 +02:00
John MacFarlane
f11d7c2478 Travis tweaks.
Disable optimizations.
Make sure we don't change flag on aeson.
2016-10-18 10:09:01 +02:00
John MacFarlane
bd1dcd6fe8 Travis: fixed --flag argument in stack. 2016-10-16 21:54:00 +02:00
John MacFarlane
4a25342ae0 Travis: Use fast flag for aeson.
This dramatically speeds up the build, according to the
aeson changelog.
2016-10-15 14:43:39 +02:00
John MacFarlane
85cf7b165a Travis: test with lts-7 not lts-6. 2016-10-14 09:14:17 +02:00
John MacFarlane
f49ed2e71a Removed cabal 1.16 cruft from .travis.yml. 2016-10-01 21:12:01 +02:00
Jesse Rosenthal
8701899b52 Remove 7.6 build from .travis.yaml
We are dropping support for ghc < 7.8
2016-09-02 09:18:10 -04:00
John MacFarlane
3d86228c5b Fixed lts6 travis build. 2016-07-14 08:46:56 -07:00
John MacFarlane
1dbbb2f41a Travis: don't test on lts-5. 2016-07-03 13:28:28 -07:00
John MacFarlane
34510949ca Travis: test with ghc 8.0.1, remove testing with ghc 7.4. 2016-06-04 07:36:15 -07:00
John MacFarlane
4d5450d493 Travis: use -fno-warn-unused-do-bind -Wall -Werror. 2016-03-25 12:04:27 -07:00
John MacFarlane
9f664ee6cf Add --pedantic to stack build on travis.
This turns on -Wall, -Werror.
-Werror is already there for cabal builds, but for some reason
travis isn't failing when errors occur.
2016-03-25 09:14:54 -07:00
John MacFarlane
be2693bc45 Travis: run tests when compiling from tarball.
This should help with bugs like #2811.
2016-03-24 09:03:13 -07:00
John MacFarlane
44bcc88d57 Don't build with lts-2 or lts-3. 2016-02-17 11:42:04 -08:00
John MacFarlane
9e3f739f11 Travis: don't build with lts-3.
It doesn't have recent enough dependencies.
2016-02-17 11:39:43 -08:00
John MacFarlane
dda7c27378 Travis fixes.
cabal sdist has problems on cabal 1.16, because of our
Text.Pandoc.Data module.  So we don't test it.
2016-02-17 11:13:34 -08:00
John MacFarlane
1a87794762 Try new travis stack+cabal script. 2016-02-17 10:13:29 -08:00
John MacFarlane
a81b0932e5 Go back to testing with ghc 7.10.2.
Avoids the dreaded "the version of cabal being used has
changed" error.

https://www.reddit.com/r/haskell/comments/3f4bgr/the_version_of_cabal_being_used_has_changed/
2016-01-05 13:57:35 -08:00
John MacFarlane
e792920d4a Regenerated .travis.yml to include 7.10.3. 2016-01-05 11:28:42 -08:00
John MacFarlane
694eb87b48 Updated .travis.yml, added ghc 7.10.3 to tested-with. 2016-01-05 10:51:16 -08:00
John MacFarlane
67b49d786c Travis: only use ghc 7.10.2 for now.
We can go back to the old cabal-based travis once pandoc-types
and texmath have been released.
2015-11-21 11:04:55 -08:00
John MacFarlane
8f0490a66e Travis: Use --system-ghc. 2015-11-21 11:02:22 -08:00
John MacFarlane
ad6a3401fb Added sanity check in .travis.yml to diagnose problem. 2015-11-21 10:52:08 -08:00
John MacFarlane
dd2d8ff6ff Fixed travis again. 2015-11-21 10:44:09 -08:00
John MacFarlane
e456ddbd4f Fixed travis. 2015-11-21 10:33:16 -08:00
John MacFarlane
3f89c95a4a Back to stack-based .travis.yml; use stack 1.8. 2015-11-21 10:20:17 -08:00
John MacFarlane
da43c7001f Simpler travis - build pandoc, pandoc-citeproc, texmath together.
No caching.
This is temporary until we release pandoc-types and texmath.
2015-11-21 09:15:34 -08:00
John MacFarlane
99bc204e8b Travis, make_travis_yml: reverted addition of 'cabal test' in tgz. 2015-11-21 08:45:38 -08:00
John MacFarlane
1494097ffc Further travis tweaks. 2015-11-21 07:45:56 -08:00
John MacFarlane
f36f0b275e Fix travis problem. 2015-11-21 07:33:21 -08:00
John MacFarlane
ba2bce3abc Fixed .travis.yml syntax. 2015-11-21 07:25:41 -08:00
John MacFarlane
0ea7cce895 travis: install unreleased pandoc-types & texmath. 2015-11-21 07:19:51 -08:00
John MacFarlane
bd07432a0c Back to cabal-based .travis.yml.
Modified make_travis_yml so that we do a 'cabal test' with the
unpacked tarball.
2015-11-21 07:15:55 -08:00
John MacFarlane
d20b15b0f6 Tweaked travis.yml. 2015-11-20 22:14:57 -08:00
John MacFarlane
3ee2d62187 More travis/stack tweaks. 2015-11-20 20:50:46 -08:00
John MacFarlane
6ae21832c0 Removed ./travis_long from .travis.yml. 2015-11-20 20:34:14 -08:00
John MacFarlane
ece6b632c2 New stack-based .travis.yml.
For now, at least, we need to use stack to build in travis,
since we depend on unreleased packages.
2015-11-20 20:31:04 -08:00
John MacFarlane
384d03dcfe Revert "Give up support for ghc 7.4."
This reverts commit e0c83f74f3.
2015-11-09 10:07:52 -08:00
John MacFarlane
e0c83f74f3 Give up support for ghc 7.4. 2015-11-08 21:43:31 -08:00
John MacFarlane
2739f5ab86 travis: use -Werror even on ghc 7.10. 2015-10-14 09:11:32 -07:00
John MacFarlane
a25c565f81 Added comment in .travis.yml to explain last change. 2015-10-09 22:33:15 -07:00
John MacFarlane
fa18e3d7e1 Use dist/setup/setup/sdist instead of cabal sdist.
This should help with older versions of cabal which
can't handle custom preprocessors.

See
http://stackoverflow.com/questions/16256987/haskell-packaging-cabal-package-with-custom-preprocessors
2015-10-09 22:30:35 -07:00
John MacFarlane
3687dc36d5 Test also on ghc 7.4.2.
Made make_travis_yml.hs a bit more robust.
2015-10-09 14:44:32 -07:00
John MacFarlane
c13494c808 New .travis.yml.
Autgenerated using make_travis_yml.hs.

This script has been modified to add GHCOPTS.

'make .travis.yml' regenerates it based on the tested-with
field of the cabal file.
2015-10-08 13:39:32 -07:00
John MacFarlane
00e2ae8a67 Simplified travis.yml.
- Follows template on hvr/multi-ghc-travis.
- Don't build with ghc 7.4.2.
- Build tarball after main build.
2015-10-08 13:18:28 -07:00
John MacFarlane
fb8b7800ea Travis: use cabal-install 1.22 not head. 2015-10-08 13:09:54 -07:00
John MacFarlane
21c5b51ce2 travis: use ghc 7.10.2 instead of 7.10.1. 2015-10-08 12:30:13 -07:00
John MacFarlane
1e17922b95 Use cabal-install-head in travis for ghc 7.10.1.
See
https://www.reddit.com/r/haskell/comments/3f4bgr/the_version_of_cabal_being_used_has_changed/

Maybe this will fix the Cabal version mismatch problem?
2015-08-15 11:50:07 -07:00
John MacFarlane
b725b45c83 Travis: removed diagnostics, add cabal path to PATH, back to ghc 7.10.1.
ghc 7.10.2 isn't whitelisted yet.
https://github.com/travis-ci/travis-ci/issues/4478
2015-08-15 11:13:29 -07:00
John MacFarlane
3a9352957a Added some travis diagnostics. 2015-08-15 11:10:29 -07:00
John MacFarlane
cc37c5470d Travis: build with ghc 7.10.2 instead of 7.10.1. 2015-08-15 10:45:24 -07:00
John MacFarlane
02f4e640ac Revert "Travis: call test program directly rather than by cabal."
This reverts commit 8bcaea5bd1.
2015-08-08 20:39:05 -07:00
John MacFarlane
8bcaea5bd1 Travis: call test program directly rather than by cabal. 2015-08-08 15:52:28 -07:00
John MacFarlane
6e121bfafc Travis: only do sdist with cabal != 1.16. 2015-07-05 10:42:44 -07:00
John MacFarlane
edf55dcee8 Travis: reorder hsb2hs install. 2015-07-05 09:50:03 -07:00
John MacFarlane
923e65ffa8 Travis: install hsb2hs. 2015-07-04 21:50:09 -07:00
John MacFarlane
a27991d398 Try to fix travis build for ghc 7.4.2. 2015-07-03 15:56:02 -07:00
John MacFarlane
0ce6174820 Fixed travis. 2015-07-03 14:26:17 -07:00
John MacFarlane
56c270d697 Travis: build in a directory created by sdist.
This will catch packaging bugs.
2015-07-03 12:48:19 -07:00
John MacFarlane
fa76156d24 Added JOPTS to travis.
This way we can set -j2 only for GHC > 7.4.
2015-04-25 12:57:07 -07:00
John MacFarlane
cfd69548b3 Use -j2 for travis builds. (See #2110.) 2015-04-25 12:42:53 -07:00
Tim Lin
0c1b87780f updates travis apt installs to the new sudo-less syntax
New syntax is specified here: http://docs.travis-ci.com/user/apt/
2015-04-25 03:29:42 -07:00
John MacFarlane
3a4ef013d8 travis script: build with ghc 7.10.1.
For now -Werror is turned of for 7.10.1.
2015-03-27 21:14:32 -07:00
John MacFarlane
6a6392d393 Travis: comment out ghc 7.10 until we have the dependencies. 2015-02-07 21:17:53 -08:00
Matthew Pickering
2a3df35423 Update travis file 2015-02-02 10:44:34 +00:00
John MacFarlane
a78d8b84ca Travis: don't need alex, happy. 2014-06-18 11:34:06 -07:00
John MacFarlane
eabaa625fe Fixed travis build to install alex for GHC 7.8.2. 2014-05-16 10:34:20 -07:00
John MacFarlane
650f831949 travis: Test with ghc 7.8.2 rather than 7.8.1. 2014-05-16 09:50:30 -07:00
John MacFarlane
a9eb0caabb Fixed cabal path in travis config. 2014-04-09 17:33:51 -07:00
John MacFarlane
a67b221d4d More travis tweaks. 2014-04-09 17:18:10 -07:00
John MacFarlane
1fd5ca48c1 Travis: gave up trying to test the sdist.
For some reason hsb2hs was not found, even though it was built.
2014-04-09 16:38:15 -07:00
John MacFarlane
f31f5924b3 More travis tweaks. 2014-04-09 15:07:36 -07:00
John MacFarlane
6b49015307 More travis tweaks. 2014-04-09 14:23:09 -07:00
John MacFarlane
cf66f10e0c Travis build: remove 6.12; add -v2 to dependencies install. 2014-04-09 12:18:57 -07:00
John MacFarlane
4152ca33e4 Travis: install hsb2hs. 2014-04-09 12:14:05 -07:00
John MacFarlane
3c472d0843 More travis tweaks. 2014-04-09 11:36:50 -07:00
John MacFarlane
7a4412c165 More travis changes. 2014-04-09 11:05:42 -07:00
John MacFarlane
f97b2e4bf4 Fixed $CABAL in travis script. 2014-04-09 10:43:06 -07:00
John MacFarlane
fca601d5f1 Updated travis script to test with multiple GHC versions. 2014-04-09 10:19:22 -07:00
Albert Krewinkel
3f5d9432ff Force failure of a Travis build if GHC produces warnings
Pandoc should, as stated in CONTRIBUTING.md, always compile without
warnings.  This patch forces GHC to treat warnings like errors during
Travis builds, making it possible to catch mistakes (like missing
top-level type definitions) early.
2014-04-09 17:58:55 +02:00
John MacFarlane
2f156eeb30 Updated travis build. 2013-08-24 22:42:40 -07:00
John MacFarlane
15984adaaa Another attempt at .travis.yml. 2013-07-13 15:15:43 -07:00
John MacFarlane
3b1898dec9 Another attempt at the travis build spec. 2013-07-13 15:08:36 -07:00
John MacFarlane
a5882bd587 Tweaked travis script to use cabal-dev. 2013-07-13 15:06:25 -07:00
John MacFarlane
db16644c46 Revert "Temporarily removed travis build instructions."
This reverts commit bba08126b4.
2013-01-19 17:04:11 -08:00
John MacFarlane
bba08126b4 Temporarily removed travis build instructions. 2012-08-08 15:36:57 -07:00
John MacFarlane
c936b25ebf Changed travis instructions for new test. 2012-07-26 09:56:01 -07:00
John MacFarlane
8538b6764d Fixed travis-CI script to build tests. 2012-03-14 18:34:33 -07:00
John MacFarlane
4c0b6ad48e Added .travis.yml. 2012-03-13 08:39:26 -07:00