forked from TokTok/hs-toxcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (26 loc) · 933 Bytes
/
.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
---
language: generic
dist: xenial
os: linux
cache:
directories:
- $HOME/.local
- $HOME/.stack
before_install:
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://github.com/TokTok/hs-tools/releases/download/v0.6/hs-tools-v0.6.tar.gz | tar xz -C $HOME
install:
# Where to find libraries.
- export LD_LIBRARY_PATH=$HOME/.local/lib
- export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig
# libsodium
- git clone --depth=1 --branch=stable https://github.com/jedisct1/libsodium
- test -f $HOME/.local/lib/libsodium.so || (cd libsodium && ./configure --prefix=$HOME/.local && make install -j$(nproc))
script:
- hlint .
- stylish-haskell-lhs -i .
- git diff --exit-code
- stack --no-terminal test --coverage --extra-include-dirs=$HOME/.local/include --extra-lib-dirs=$HOME/.local/lib
- shc toxcore testsuite
- (cd .. && git clone --depth=1 https://github.com/TokTok/spec)
- make doc