forked from astorfi/TensorFlow-World
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (23 loc) · 1.21 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
language: python
python:
- "2.7"
- "3.5"
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install coveralls
- pip install flake8
script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
- coverage run --omit=*.virtualenvs*,*virtualenv* codes/0-welcome/code/0-welcome.py test
- coverage run --omit=*.virtualenvs*,*virtualenv* codes/1-basics/basic_math_operations/code/basic_math_operation.py test
- coverage run --omit=*.virtualenvs*,*virtualenv* codes/1-basics/variables/code/variables.py test
- coverage run --omit=*.virtualenvs*,*virtualenv* codes/2-basics_in_machine_learning/linear_regression/code/linear_regression.py test
- coverage run --omit=*.virtualenvs*,*virtualenv* codes/2-basics_in_machine_learning/linear_svm/code/linear_svm.py test
- coverage run --omit=*.virtualenvs*,*virtualenv* codes/2-basics_in_machine_learning/logistic_regression/code/logistic_regression.py test
- coverage run --omit=*.virtualenvs*,*virtualenv* codes/2-basics_in_machine_learning/multiclass_svm/code/multiclass_svm.py test
after_success:
coveralls
sudo: enabled
dist: trusty