forked from haskell-game/sdl2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (33 loc) · 1.08 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
env:
- GHCVER=7.8.3
before_install:
- |
if [ q$GHCVER = q$(ghc --numeric-version) ]; then
# Try installing some of the build-deps with apt-get for speed.
travis/cabal-apt-install --enable-tests $MODE
export CABAL=cabal
else
# Install the GHC we want from hvr's PPA
travis_retry sudo add-apt-repository -y ppa:hvr/ghc
travis_retry sudo apt-get update
travis_retry sudo apt-get install cabal-install-1.18 ghc-$GHCVER happy
export CABAL=cabal-1.18
export PATH=/opt/ghc/$GHCVER/bin:$PATH
fi
- wget http://libsdl.org/release/SDL2-2.0.6.tar.gz -O - | tar xz
- cd SDL2-2.0.6 && ./configure && make -j && sudo make install && cd ..
- cabal install --only-d
script:
- $CABAL configure
- $CABAL build
notifications:
irc:
channels:
- "irc.freenode.org#haskell-game"
template:
- "%{repository}#%{build_number} - %{commit} on %{branch} by %{author}: %{message}"
- "Build details: %{build_url} - Change view: %{compare_url}"
skip_join: true
on_success: change
on_failure: always