-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.travis.yml
50 lines (43 loc) · 1.03 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
language: generic
sudo: false
dist: trusty
branches:
only:
- main
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 black==19.10b0
- black . --diff --check
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 pcbflow
- conda install -c conda-forge -c defaults python=$PYTHON_VERSION
install:
- python setup.py install
script:
- cd tests
- pytest -v --cov
after_success:
- codecov