2016-07-13 21:18:03 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-08-11 20:49:49 +08:00
|
|
|
# An initial update is required or the cabal cache will be empty and no packages
|
|
|
|
# can be installed.
|
2016-07-13 21:18:03 +08:00
|
|
|
cabal update
|
|
|
|
|
|
|
|
# We need to install happy explicitly, otherwise setup-Simple-Cabal will fail to
|
|
|
|
# install.
|
|
|
|
cabal install happy
|
|
|
|
|
2016-10-01 07:26:52 +08:00
|
|
|
# Fetch hstox and msgpack-c.
|
|
|
|
git clone --recursive --depth=1 https://github.com/TokTok/hs-toxcore ../hs-toxcore
|
|
|
|
git clone --depth=1 https://github.com/msgpack/msgpack-c testing/hstox/msgpack-c
|
2016-07-13 21:18:03 +08:00
|
|
|
|
2016-10-01 07:26:52 +08:00
|
|
|
# Install the hstox test runner.
|
|
|
|
(cd ../hs-toxcore && cabal install --disable-library-profiling)
|
2016-07-13 21:18:03 +08:00
|
|
|
|
2016-10-01 07:26:52 +08:00
|
|
|
# Install toxcore dependencies.
|
|
|
|
. other/travis/toxcore-linux-install
|