-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
18 lines (18 loc) · 865 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
language: python # this works for Linux but is an error on macOS or Windows
matrix:
include:
- name: "Python 3.7.1 on Xenial Linux"
python: 3.7 # this works for Linux but is ignored on macOS or Windows
dist: xenial # required for Python >= 3.7
script: bash run_tests.sh
- name: "Python 3.7.3 on Windows "
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python3 --version 3.7.3
- pip install virtualenv
- virtualenv $HOME/venv
- source $HOME/venv/Scripts/activate
- pip install -r requirements.txt
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
script: nose2 tests --plugin nose2.plugins.junitxml --config myconfig.cfg