-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
37 lines (29 loc) · 1.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: haskell
sudo: required
env:
- GHCVER=8.0.2 CABALVER=1.24 HAPPYVER=1.19.5 LD_LIBRARY_PATH=/usr/local/lib
before_install:
- cd ..
# Install SDL.
- wget -q http://www.libsdl.org/release/SDL2-2.0.3.tar.gz
- tar xf SDL2-*.tar.gz
- cd SDL2-* && ./configure && make && sudo make install && cd ..
# Install SDL_image.
- wget -q http://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.0.tar.gz
- tar xf SDL2_image-*.tar.gz
- cd SDL2_image-* && ./configure && make && sudo make install && cd ..
# Install GHC and cabal-install.
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER happy-$HAPPYVER
- export CABAL=/opt/cabal/bin/cabal-$CABALVER
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
- rm -rf ~/.cabal
- $CABAL update
install:
# Install haskell-game/sdl2.
- git clone https://github.com/haskell-game/sdl2.git
- cd sdl2 && $CABAL install --flags="no-linear" && cd ..
script:
- cd sdl2-image
- $CABAL install --flags="example"