-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
58 lines (52 loc) · 1.3 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
matrix:
include:
- os: linux
language: python
python: 3.5
- os: linux
language: python
python: 3.6
- os: linux
language: python
python: 3.7
- os: linux
language: python
python: 3.8
- os: osx
language: generic
env: PYTHON=35
- os: osx
language: generic
env: PYTHON=36
- os: osx
language: generic
env: PYTHON=37
- os: osx
language: generic
env: PYTHON=38
before_script:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
fi
before_install:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci;
source ./macports-ci install;
yes | sudo port install python$PYTHON;
yes | sudo port install py$PYTHON-pip;
sudo port select --set python3 python$PYTHON;
sudo port select --set pip pip$PYTHON;
export PATH=$PATH:$(python3 -c "import site; print(site.USER_BASE)")/bin;
fi
- pip install -U pip
- python3 --version
- pip --version
install:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
pip install --user .[test];
else
pip install .[test];
fi
script:
- pytest
- mypy examples src tests