-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaocloud.yml
42 lines (40 loc) · 1.28 KB
/
daocloud.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
image: daocloud/ci-gcc:5
env:
- CABALVER=1.22 GHCVER=7.10.2
install:
- add-apt-repository -y ppa:hvr/ghc
- echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" > /etc/apt/sources.list.d/pgdg.list
- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- apt-get update
- apt-get -y install cabal-install-$CABALVER ghc-$GHCVER postgresql-9.4
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
- cabal sandbox init
- cabal update
- cabal install 'warp < 3.2'
- cabal install directory
- cabal install yesod -j9
- cabal install yesod-auth
- cabal install monad-logger
- cabal install aeson
- cabal install bytestring
- cabal install text
- cabal install persistent
- cabal install persistent-template
- cabal install persistent-postgresql
- cabal install transformers
- cabal install resourcet
- cabal install blaze-html
- cabal install time
- cabal install pureMD5
- cabal install SHA
- cabal install cmdargs
before_script:
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
- echo $PATH
- which cabal
script:
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
- echo $PATH
- which cabal
- cabal install -j9