-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
57 lines (50 loc) · 1.28 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
dist: bionic
language: python
branches:
only:
- master
matrix:
include:
- name: "Python 3.6 - linux"
env: PYTHON_VERSION=3.6
os: linux
- name: "Python 3.7 - linux"
env: PYTHON_VERSION=3.7
os: linux
- name: "Python 3.8 - linux"
env: PYTHON_VERSION=3.8
os: linux
- name: "Lint"
env: PYTHON_VERSION=3.7
os: linux
script:
- pip install --upgrade click==8.0.2
- black . --diff --check
addons:
apt:
packages:
- libhidapi-dev
- libudev-dev
- libusb-1.0-0-dev
- bluez
- bluetooth
- libbluetooth-dev
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
OS=Linux ;
else
OS=MacOSX ;
fi ;
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-$OS-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda;
- export PATH="$HOME/miniconda/bin:$HOME/miniconda/lib:$PATH";
- conda config --set always_yes yes --set changeps1 no;
- conda env create -f environment.yml
- source ~/miniconda/bin/activate pfxtest
- conda install -c conda-forge -c defaults python=$PYTHON_VERSION
install:
- pip install -r requirements.txt
- python setup.py install
script:
- cd tests
- pytest -v