Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a travis script for Haskel/stack?

I've seen quite a few travis stack scripts, they seemed pretty complicated, I don't think they have to be so complicated.

Here's mine:

language: haskell
sudo: false

ghc:
- '7.10.3'

Locally I compile my app by "stack build".

How can I add "stack" to the travis file properly? At the moment I need only stack, no tests.

like image 443
Judi Avatar asked Dec 29 '25 08:12

Judi


1 Answers

There's a very thorough example at

http://docs.haskellstack.org/en/stable/GUIDE/#travis-with-caching

It used to be much smaller, but we added support to that to build with both Stack and cabal, which complicated things a lot. You can always trim it down to remove support for some of the more complicated features.

like image 135
Michael Snoyman Avatar answered Jan 01 '26 05:01

Michael Snoyman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!