lpeterse / haskell-socket

A Haskell binding to the POSIX sockets API
MIT License
47 stars 10 forks source link

Run Travis tests on Mac OS too #34

Open VyacheslavHashov opened 7 years ago

VyacheslavHashov commented 7 years ago

In .travis.yaml

os:
  - linux
  - osx
lpeterse commented 7 years ago

This is is bigger task. The whole environment setup is heavily platform dependant (apt-get etc).

VyacheslavHashov commented 7 years ago

Is it feasible to run tests with stack? I can write necessary Travis config.

lpeterse commented 7 years ago

Switching to stack would be better anyway, I guess. If you already have a working Travis config at hand that can be adapted, that would be nice. We just need to remember to include the network specific additions (turning on IPv6 etc).

VyacheslavHashov commented 7 years ago

I have found that Travis does not allow ipv6 on OS X containers at all.

lpeterse commented 7 years ago

I think it might be a solution to split out the IPv6 parts from the test suite and not run them on OSX. IPv6 is probably not essential for most of the tests. I just mixed it in here and there to have it covered. I need to think about this a little. Other solutions are always welcome.