-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
102 lines (90 loc) · 5.52 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Based on Jan Bracker's supermonad travis file, which is itself based on
# others (https://github.com/jbracker/supermonad/blob/master/.travis.yml)
# Don't use a specific environment. We install everything ourselves.
language: generic
# Don't use sudo so the environment boots faster on travis.
# We can get around sudo, because we are using apt addons to install
# custom packages.
sudo: false
# Environments we want to build for.
matrix:
include:
- env: GHCVER=7.10.3 CABALVER=2.4
addons: {apt: {packages: [cabal-install-2.4,ghc-7.10.3,alex,happy,libgtk2.0-dev, gtk2hs-buildtools], sources: [hvr-ghc]}}
- env: GHCVER=8.2.2 CABALVER=2.4
addons: {apt: {packages: [cabal-install-2.4,ghc-8.2.2,alex,happy,libgtk2.0-dev, gtk2hs-buildtools], sources: [hvr-ghc]}}
- env: GHCVER=8.4.4 CABALVER=2.4
addons: {apt: {packages: [cabal-install-2.4,ghc-8.4.4,alex,happy,libgtk2.0-dev, gtk2hs-buildtools], sources: [hvr-ghc]}}
- env: GHCVER=8.6.5 CABALVER=2.4
addons: {apt: {packages: [cabal-install-2.4,ghc-8.6.5,alex,happy,libgtk2.0-dev, gtk2hs-buildtools], sources: [hvr-ghc]}}
- env: GHCVER=8.8.4 CABALVER=2.4
addons: {apt: {packages: [cabal-install-2.4,ghc-8.8.4,alex,happy,libgtk2.0-dev, gtk2hs-buildtools], sources: [hvr-ghc]}}
- env: GHCVER=8.10.2 CABALVER=2.4
addons: {apt: {packages: [cabal-install-2.4,ghc-8.10.2,alex,happy,libgtk2.0-dev, gtk2hs-buildtools], sources: [hvr-ghc]}}
before_install:
- unset CC
- openssl aes-256-cbc -K $encrypted_3ed86c537adf_key -iv $encrypted_3ed86c537adf_iv -in .cabal-conf/hackage.enc -out .cabal-conf/hackage -d
# Setup tools
install:
- export PATH=$PWD/.cabal-sandbox/bin:$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
- travis_retry cabal update
- cat .cabal-conf/hackage >> $HOME/.cabal/config
# Compilation script
before_script:
- ghc --version
- cabal --version
- alex --version
- happy --version
- gtk2hsC2hs --version
# Work in a sandbox
- cabal sandbox init
- find . -type f -iname '*.cabal' -exec dirname {} \; | xargs cabal sandbox add-source
script:
- travis_retry cabal install --reorder-goals --max-backjump=-1 -j2
keera-hails-i18n/
keera-hails-mvc-controller/
keera-hails-mvc-environment-gtk/
keera-hails-mvc-model-lightmodel/
keera-hails-mvc-model-protectedmodel/
keera-hails-mvc-solutions-config/
keera-hails-mvc-solutions-gtk/
keera-hails-mvc-view/
keera-hails-mvc-view-gtk/
keera-hails-reactive-cbmvar/
keera-hails-reactive-gtk/
keera-hails-reactive-network/
keera-hails-reactive-polling/
keera-hails-reactivelenses/
keera-hails-reactivevalues/
keera-hails-reactive-yampa/
keera-hails-reactive-fs/
# Notifications
notifications:
email: true
deploy:
provider: script
script: set -x &&
cd keera-hails-reactivelenses && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-i18n && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-mvc-controller && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-mvc-environment-gtk && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-mvc-model-lightmodel && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-mvc-model-protectedmodel && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-mvc-solutions-config && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-mvc-solutions-gtk && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-mvc-view && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-mvc-view-gtk && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-mvc-controller && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-reactive-cbmvar && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-reactive-gtk && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-reactive-htmldom && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-reactive-network && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-reactive-polling && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-reactive-wx && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-reactivelenses && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-reactivevalues && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-reactive-yampa && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
cd keera-hails-reactive-fs && cabal check && cabal sdist && cabal upload --publish dist/*.tar.gz ; cd .. ;
on:
branch: master
condition: "$GHCVER = 8.4.4"