forked from sukeesh/Jarvis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 966 Bytes
/
.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
language: python
matrix:
cache: pip
include:
- name: "Python 3.7 on Linux"
os: linux
dist: xenial
sudo: true
python: 3.7
env: TOXENV=py37
- name: "Python 3.7 on MacOS"
os: osx
language: generic
sudo: required
env: TOXENV=py37
- name: "Python 3.7 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.7.4
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
sudo -H pip3 install --upgrade -r installer/requirements.txt;
else
pip install --upgrade -r installer/requirements.txt;
fi
script:
- cd $TRAVIS_BUILD_DIR/
- flake8 --select E,W --max-line-length=140 --ignore E722,W503,W504,E128 jarviscli/
- cd jarviscli/
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
python3 -m unittest discover;
else
python -m unittest discover;
fi