forked from yi-editor/yi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (37 loc) · 1.59 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
38
39
40
41
42
43
matrix:
allow_failures:
- env: GHCVER=7.8.4 FLAGS="-fhint -fpango" CABALVER=1.22 # because of glib failure
- env: GHCVER=8.0.1 FLAGS="-fhint -fpango" CABALVER=1.24 # because of hint failure
- env: GHCVER=head FLAGS="-f-hint -f-pango" CABALVER=head
- env: GHCVER=head FLAGS="-fhint -fpango" CABALVER=head
env:
- GHCVER=7.8.4 FLAGS="-f-hint -f-pango" CABALVER=1.22
- GHCVER=7.10.3 FLAGS="-f-hint -f-pango" CABALVER=1.22
- GHCVER=8.0.1 FLAGS="-f-hint -f-pango" CABALVER=1.24
- GHCVER=head FLAGS="-f-hint -f-pango" CABALVER=head
- GHCVER=7.8.4 FLAGS="-fhint -fpango" CABALVER=1.22
- GHCVER=7.10.3 FLAGS="-fhint -fpango" CABALVER=1.22
- GHCVER=8.0.1 FLAGS="-fhint -fpango" CABALVER=1.24
- GHCVER=head FLAGS="-fhint -fpango" CABALVER=head
before_install:
- sudo add-apt-repository -y ppa:hvr/ghc
- sudo apt-get update
- sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER libicu-dev
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
install:
- cabal-$CABALVER update
- travis_retry cabal-$CABALVER install Cabal
- travis_retry sudo apt-get install happy-1.19.5 alex-3.1.7
- export PATH=/opt/alex/3.1.7/bin:/opt/happy/1.19.5/bin:$PATH
- travis_retry cabal-$CABALVER install -j2 gtk2hs-buildtools
script:
- travis_retry cabal-$CABALVER install -j2 $FLAGS -fvty --enable-tests -ftesting --only-dependencies --reorder-goals --force-reinstalls
- cabal-$CABALVER install -j1 $FLAGS -fvty --enable-tests -ftesting
- cabal-$CABALVER test
- cd ../yi/example-configs
- for config in yi*.hs;
do
ghc -Wall -Werror -ferror-spans --make $config;
done;
notifications:
irc: "chat.freenode.net#yi"