-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (25 loc) · 878 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
31
32
sudo: false
language: minimal
cache:
directories:
- $HOME/.stack
addons:
apt:
packages:
- libgmp-dev
before_install:
## Local bin directory is where stack and compiled executables go
- mkdir -p $HOME/.local/bin
- export PATH=$HOME/.local/bin:$PATH
install:
## Install dependencies. Stack is the only one we need to retrieve
- travis_retry curl -s -o stack.tar.gz -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz
- tar -xzf stack.tar.gz --wildcards --strip-components 1 -C $HOME/.local/bin '*/stack'
script:
## Build NESS
- cd $TRAVIS_BUILD_DIR/build && make install
- cd $TRAVIS_BUILD_DIR/walk && make install
## Test the heterogeneous network builder
- cd $TRAVIS_BUILD_DIR/build && make test
## Test the random walk algorithm
- cd $TRAVIS_BUILD_DIR/walk && make test