2018-07-12 02:28:05 +00:00
|
|
|
language: python
|
2019-10-15 18:32:43 +00:00
|
|
|
dist: xenial
|
|
|
|
sudo: required
|
2018-08-07 12:53:03 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
2020-01-27 03:09:32 +00:00
|
|
|
- name: "Windows, Python Latest: multiprocessing"
|
2019-10-15 18:32:43 +00:00
|
|
|
os: windows
|
2019-03-31 00:41:09 +00:00
|
|
|
language: sh
|
2019-10-15 18:32:43 +00:00
|
|
|
python: 3.x # only works on linux
|
2020-07-25 16:00:04 +00:00
|
|
|
env: SPAWN_BACKEND="mp"
|
|
|
|
before_install:
|
|
|
|
- choco install python3 --params "/InstallDir:C:\\Python"
|
|
|
|
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
|
|
|
|
- python -m pip install --upgrade pip wheel
|
|
|
|
|
|
|
|
- name: "Windows, Python Latest: trio"
|
|
|
|
os: windows
|
|
|
|
language: sh
|
|
|
|
python: 3.x # only works on linux
|
|
|
|
env: SPAWN_BACKEND="trio"
|
2019-03-31 00:41:09 +00:00
|
|
|
before_install:
|
2019-10-15 18:32:43 +00:00
|
|
|
- choco install python3 --params "/InstallDir:C:\\Python"
|
|
|
|
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
|
2019-03-31 00:41:09 +00:00
|
|
|
- python -m pip install --upgrade pip wheel
|
|
|
|
|
2020-01-27 03:09:32 +00:00
|
|
|
- name: "Windows, Python 3.7: multiprocessing"
|
2019-10-17 00:41:03 +00:00
|
|
|
os: windows
|
|
|
|
python: 3.7 # only works on linux
|
2020-07-25 16:00:04 +00:00
|
|
|
env: SPAWN_BACKEND="mp"
|
|
|
|
language: sh
|
|
|
|
before_install:
|
|
|
|
- choco install python3 --version 3.7.4 --params "/InstallDir:C:\\Python"
|
|
|
|
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
|
|
|
|
- python -m pip install --upgrade pip wheel
|
|
|
|
|
|
|
|
- name: "Windows, Python 3.7: trio"
|
|
|
|
os: windows
|
|
|
|
python: 3.7 # only works on linux
|
|
|
|
env: SPAWN_BACKEND="trio"
|
2019-10-17 00:41:03 +00:00
|
|
|
language: sh
|
|
|
|
before_install:
|
|
|
|
- choco install python3 --version 3.7.4 --params "/InstallDir:C:\\Python"
|
|
|
|
- export PATH="/c/Python:/c/Python/Scripts:$PATH"
|
|
|
|
- python -m pip install --upgrade pip wheel
|
|
|
|
|
2020-01-27 02:50:03 +00:00
|
|
|
- name: "Python 3.7: multiprocessing"
|
|
|
|
python: 3.7 # this works for Linux but is ignored on macOS or Windows
|
2020-01-27 03:09:32 +00:00
|
|
|
env: SPAWN_BACKEND="mp"
|
2020-07-20 19:18:38 +00:00
|
|
|
- name: "Python 3.7: trio"
|
2020-01-27 02:50:03 +00:00
|
|
|
python: 3.7 # this works for Linux but is ignored on macOS or Windows
|
2020-07-20 19:18:38 +00:00
|
|
|
env: SPAWN_BACKEND="trio"
|
2020-01-27 02:50:03 +00:00
|
|
|
|
2020-01-31 17:04:13 +00:00
|
|
|
- name: "Python 3.8: multiprocessing"
|
2020-01-27 02:50:03 +00:00
|
|
|
python: 3.8 # this works for Linux but is ignored on macOS or Windows
|
2020-01-27 03:09:32 +00:00
|
|
|
env: SPAWN_BACKEND="mp"
|
2020-07-20 19:18:38 +00:00
|
|
|
- name: "Python 3.8: trio"
|
2020-01-27 02:50:03 +00:00
|
|
|
python: 3.8 # this works for Linux but is ignored on macOS or Windows
|
2020-07-20 19:18:38 +00:00
|
|
|
env: SPAWN_BACKEND="trio"
|
2018-07-12 02:28:05 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2019-10-20 18:06:28 +00:00
|
|
|
- pip install -U pip
|
2019-10-20 20:24:01 +00:00
|
|
|
- pip install -U . -r requirements-test.txt --upgrade-strategy eager
|
2018-07-12 02:28:05 +00:00
|
|
|
|
|
|
|
script:
|
2020-01-16 00:48:37 +00:00
|
|
|
- mypy tractor/ --ignore-missing-imports
|
2020-07-26 01:20:34 +00:00
|
|
|
- pytest tests/ --spawn-backend=${SPAWN_BACKEND}
|