Instructions to run on startup in OS X (fixes #3)
[darcs-mirror-arbtt.git] / .travis-setup-windows.sh
1 #!/bin/bash
2
3 set -xe
4 sudo add-apt-repository -y ppa:pipelight/stable
5 sudo apt-get update
6 sudo apt-get install --install-recommends wine-staging wine-staging-compat xvfb
7 wget https://github.com/fpco/minghc/releases/download/2015-12-04/minghc-7.10.2-i386.exe
8 wine minghc-7.10.2-i386.exe /S | grep -v Extracting
9 wine cabal --version
10 wine cabal update
11 wget http://sourceforge.net/projects/gnuwin32/files/pcre/7.0/pcre-7.0.exe/download -O pcre-7.0.exe
12 xvfb-run -a wine ./pcre-7.0.exe /VERYSILENT
13 test -d ~/".wine/drive_c/Program Files (x86)/GnuWin32/include"
14 wine cabal install --only-dependencies --enable-tests --enable-benchmarks --extra-include-dirs='C:\Program Files (x86)\GnuWin32\include' --extra-lib-dirs='C:\Program Files (x86)\GnuWin32\lib' --constraint 'pcre-light < 0.4.0.4'
15 # pcre-light 0.4.0.4 requires pkg-config