-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (38 loc) · 1.69 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
language: haskell
env:
- 'UBUNTU_RELEASE=saucy GHCVER=7.8.3 CABALVER=1.20'
before_install:
- 'sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ ${UBUNTU_RELEASE} main universe"'
- 'sudo add-apt-repository -y ppa:hvr/ghc'
- 'sudo apt-get update'
- 'sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER happy'
- 'export PATH=/opt/ghc/$GHCVER/bin:$PATH'
- sudo apt-get remove libzmq1
- wget http://download.zeromq.org/zeromq-4.0.4.tar.gz
- tar -xf zeromq-4.0.4.tar.gz
- cd zeromq-4.0.4
- ./configure
- make
- sudo make install
- sudo su -c "echo '/usr/local/lib' > /etc/ld.so.conf.d/local.conf"
- sudo ldconfig
- cd ..
- sudo mkdir -p /var/spool/marquise/
- sudo chown $USER /var/spool/marquise/
install:
# Hackage is utterly unusable right now (timeouts and 504 errors), and a lot
# of Travis builds don't even get to the point of testing the code because
# the environment can't download the necessary packages. This may help.
- 'sed -r -i "s,^(remote-repo: hackage.haskell.org.*)$,\1\nremote-repo: hackage.syd1.anchor.net.au:http://hackage.syd1.anchor.net.au/packages/archive," /home/travis/.cabal/config'
- 'cabal-$CABALVER update'
- 'cabal-$CABALVER sandbox init'
- ' git clone https://github.com/anchor/vaultaire-common.git ../vaultaire-common/'
- ' git clone https://github.com/anchor/marquise.git ../marquise/'
- 'cabal-$CABALVER sandbox add-source ../vaultaire-common/'
- 'cabal-$CABALVER sandbox add-source ../marquise/'
- 'cabal-$CABALVER install --only-dependencies --enable-tests --enable-benchmarks'
script:
- 'cabal-$CABALVER configure --enable-tests'
- 'cabal-$CABALVER build'
- 'cabal-$CABALVER sdist'
- 'cabal-$CABALVER test'