forked from leksah/leksah
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (33 loc) · 1 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
env:
- GHCVER=7.4.1
- GHCVER=7.4.2
- GHCVER=7.6.3
- GHCVER=7.8.2
before_install:
- sudo add-apt-repository -y ppa:hvr/ghc
- sudo apt-get update -qq
- sudo apt-get --no-install-recommends install libgtksourceview-3.0-dev libwebkitgtk-3.0-dev
- sudo apt-get install cabal-install-1.20 ghc-$GHCVER
- export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/1.20/bin:$PATH
- cabal update
- |
if [ $GHCVER = "head" ] || [ ${GHCVER%.*} = "7.8" ]; then
sudo apt-get install happy-1.19.3 alex-3.1.3
export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.3/bin:$PATH
else
sudo apt-get install happy alex
fi
install:
- cabal install Cabal
- cabal install gtk2hs-buildtools
- cabal install ./ vendor/ltk vendor/leksah-server --enable-tests --only-dependencies
- cabal install vendor/ltk vendor/leksah-server
script:
- cabal configure --enable-tests -v2
- cabal build
- cabal test
- cabal sdist
notifications:
irc:
channels: "irc.freenode.net#leksah"
email: true