haskell-urbit-api/.travis.yml
2020-10-15 11:47:53 -04:00

22 lines
597 B
YAML

language: nix
os: linux
dist: xenial
# 'vm' means use the full VM, which has 7.5G memory, instead of an LXD
# container which has "~4G"
virt: vm
before_script:
# get urbit
- curl -O https://bootstrap.urbit.org/urbit-v0.10.8-linux64.tgz
- tar xzf urbit-v0.10.8-linux64.tgz
- install ./urbit-v0.10.8-linux64/urbit ~/bin
- export PATH=~/bin:$PATH
- export PORT=8080
# start urbit daemon
- ./fakezod.sh -d
script:
- nix-build
- nix-shell --run "runghc ./test.hs"
after_script:
# kill the urbit daemon
- ps aux|grep "\-dF zod"|grep -v grep|tr -s " "|cut -f2 -d" "|xargs kill -9