-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
37 lines (32 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
# Copyright (C) tkornuta, IBM Corporation 2018-2019
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
language: python
python: 3.6
# Safelist: focus Travis' attention on the master and develop branches only.
branches:
only:
- master
- develop
install:
- pip3 install flake8 -r requirements.txt
before_script:
# Test plake8 compatibility.
- python3 -m flake8 --version # flake8 3.6.0 on CPython 3.6.5 on Linux
# stop the build if there are Python syntax errors or undefined names
- python3 -m flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- python3 -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
# Try to build documentation.
- ./docs/build_docs.sh