# Support for Cygwin or WSL?

**URL:** <https://travis-ci.community/t/support-for-cygwin-or-wsl/440>\
**Category:** Windows\
**Created:** [October 20, 2018, 9:41pm UTC](https://travis-ci.community/t/support-for-cygwin-or-wsl/440 "2018-10-20T21:41:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![juju](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@juju](https://travis-ci.community/u/juju)\
**Post date:** [October 20, 2018, 9:41pm UTC](https://travis-ci.community/t/support-for-cygwin-or-wsl/440/1 "2018-10-20T21:41:00Z")

</div>

Hello,  
Thanks a lot for adding Windows support!  
Any plan to add Cygwin and/or WSL?  
Cygwin seems to slow to install even with a travis\_wait 30

Example use case: test ansible in Windows… [https://travis-ci.org/juju4/ansible-harden-windows/jobs/444187243](https://travis-ci.org/juju4/ansible-harden-windows/jobs/444187243)

Thanks

---

<div class="post-metadata">

**Author:** ![josh](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/josh/32/12_2.png) [@josh](https://travis-ci.community/u/josh)\
**Post date:** [October 20, 2018, 11:35pm UTC](https://travis-ci.community/t/support-for-cygwin-or-wsl/440/2 "2018-10-20T23:35:55Z")

</div>

Hi @juju

I will look at building a new image with WSL preinstalled. This should be available by Monday.

---

<div class="post-metadata">

**Author:** ![juju](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@juju](https://travis-ci.community/u/juju)\
**Post date:** [October 21, 2018, 12:40am UTC](https://travis-ci.community/t/support-for-cygwin-or-wsl/440/3 "2018-10-21T00:40:14Z")

</div>

Thanks a lot Josh! So fast 😃

---

<div class="post-metadata">

**Author:** ![jborean93](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jborean93/32/319_2.png) [@jborean93](https://travis-ci.community/u/jborean93)\
**Post date:** [October 30, 2018, 8:55pm UTC](https://travis-ci.community/t/support-for-cygwin-or-wsl/440/4 "2018-10-30T20:55:40Z")

</div>

I’ve been hoping to utilise WSL on a Travis-CI build so I can test Ansible roles for Windows. I’ve been able to get WSL installed and running with [https://github.com/jborean93/travis-ci-win-ansible/blob/master/.travis.yml](https://github.com/jborean93/travis-ci-win-ansible/blob/master/.travis.yml) but unfortunately it takes around 10 minutes to install the Ubuntu 18.04 distro on top of WSL which is probably a bit too long for my liking. Is there a possibility of including a distro by default or even selecting one as part of a build environment so I can save some time here?

---

<div class="post-metadata">

**Author:** ![john](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/john/32/2879_2.png) [@john](https://travis-ci.community/u/john)\
**Post date:** [December 1, 2018, 10:04pm UTC](https://travis-ci.community/t/support-for-cygwin-or-wsl/440/5 "2018-12-01T22:04:35Z")

</div>

Would it be possible to have cygwin be the primary shell instead of Git Bash? Git Bash doesn’t have a package manager to install dependencies like automake. WSL is ok for some uses, but it doesn’t help when trying to build GNU based tools for use with the Windows filesystem.

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [December 2, 2018, 2:34pm UTC](https://travis-ci.community/t/support-for-cygwin-or-wsl/440/6 "2018-12-02T14:34:12Z")

</div>

> [@juju](#):
>
> Any plan to add Cygwin and/or WSL?

> **[Packages matching cygwin](https://community.chocolatey.org/packages?q=cygwin)**
>
> Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages. Chocolatey integrates w/SCCM, Puppet, Chef, etc. Chocolatey is trusted by businesses to manage software...

> **[Packages matching WSL](https://community.chocolatey.org/packages?q=WSL)**
>
> Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages. Chocolatey integrates w/SCCM, Puppet, Chef, etc. Chocolatey is trusted by businesses to manage software...

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [December 2, 2018, 2:35pm UTC](https://travis-ci.community/t/support-for-cygwin-or-wsl/440/7 "2018-12-02T14:35:45Z")

</div>

> [@john](#):
>
> Git Bash doesn’t have a package manager to install dependencies like automake

> **[Travis CI Documentation](https://docs.travis-ci.com/user/reference/windows/#chocolatey)**
>
> The Windows Build Environment

---

<div class="post-metadata">

**Author:** ![juju](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@juju](https://travis-ci.community/u/juju)\
**Post date:** [December 2, 2018, 2:54pm UTC](https://travis-ci.community/t/support-for-cygwin-or-wsl/440/8 "2018-12-02T14:54:07Z")

</div>

I’m familiar with chocolatey but AFAIK, WSL requires a reboot to be fully enabled.  
Also, bootstrapping WSL or Cygwin is taking time on your test run. I do bootstrap cygwin+ansible in appveyor currently and lose 10min on each run.

There are also other considerations like mentioned here.

> [@Openssl, git bash, winpty](https://travis-ci.community/t/openssl-git-bash-winpty/1061):
>
> I’m trying to use Windows environment to replicate testing of my ansible role. In the appveyor/2012 working version, I have a powershell script using openssl to create certificate It fails on creating pfx under travis/2016 and I ask myself if it is not due to git-bash & pty interaction as described here example [https://travis-ci.org/juju4/ansible-harden-windows/jobs/459457840#L1255](https://travis-ci.org/juju4/ansible-harden-windows/jobs/459457840#L1255) vs [https://ci.appveyor.com/project/juju4/ansible-harden-windows/builds/20539205/job/ybknmhn4vo7vilw5?f…](https://ci.appveyor.com/project/juju4/ansible-harden-windows/builds/20539205/job/ybknmhn4vo7vilw5?fullLog=true#L192)

powershell script creating certificates with openssl not working under travis/git-bash but it does in appveyor

For now, I’m waiting on better support of direct powershell to continue my testing of travis/windows

---

<div class="post-metadata">

**Author:** ![john](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/john/32/2879_2.png) [@john](https://travis-ci.community/u/john)\
**Post date:** [December 2, 2018, 6:43pm UTC](https://travis-ci.community/t/support-for-cygwin-or-wsl/440/9 "2018-12-02T18:43:43Z")

</div>

Right, but chocolatey doesn’t have anywhere near a complete selection of GNU libraries when compared to cygwin or msys. The libraries that are available are 8 years out of date.

I wasn’t able to call into cygwin from the git for windows bash due to a mismatch with the cygwin1.dll files. There is a similar problem with msys.
