-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
37 lines (34 loc) · 1.28 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
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 librados-dev'
- '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 ..
install:
- 'cabal-$CABALVER update'
- 'cabal sandbox init'
- 'git clone https://github.com/anchor/vaultaire-common.git ../vaultaire-common/'
- 'cabal sandbox add-source ../vaultaire-common/'
- 'git clone https://github.com/anchor/marquise.git ../marquise/'
- 'cabal 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 daymap-test'
- 'cabal-$CABALVER test reader-algorithms-test'