-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
36 lines (31 loc) · 922 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
33
34
35
36
sudo: required
dist: trusty
language: python
python:
- "3.4"
virtualenv:
system_site_packages: true
env:
global:
- PACKAGES="libgmp-dev libdbus-1-dev libdbus-glib-1-dev python3-dbus python3-gi python3-pip"
matrix:
- STACK_YAML=stack.yaml
- STACK_YAML=stack-7.10.yaml
install:
# apt
- sudo apt-get update -q
- sudo apt-get install -y $PACKAGES
# stack
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- stack --version
script:
- stack setup --no-terminal
- stack build --ghc-options=-Werror --no-terminal --flag ble:-hasBluez --flag ble:-hasDBus
- stack test --ghc-options=-Werror --no-terminal --flag ble:-hasBluez --flag ble:-hasDBus
- cmp README.md examples/README.lhs
cache:
directories:
- $HOME/.stack
- $HOME/.pip