forked from IBM/ibmpairs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (42 loc) · 1.23 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
38
39
40
41
42
43
44
45
46
47
48
49
######################################
# IBM PAIRS API wrapper Travis build #
######################################
# Copyright 2019 Physical Analytics, IBM Research, IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
# programming language used
language: python
python:
- '3.7'
# Ubuntu docker container base to use
dist: xenial
# Git branches Travis uses to trigger
branches:
only:
# stable release branch
- master
# main development branch
- develop
# environment installs
install:
# get required Python modules for IBM PAIRS open source tools
- pip install -Ur requirements.txt
# install Python modules required for testing
- pip install -Ur requirements-development.txt
# get documentation generation tool
- pip install -U sphinx sphinx_rtd_theme
before_script:
# code linting for
# - Python syntax error
# - undefined names
- flake8 ibmpairs --select=E9,F63,F72,F82 --count --show-source --statistics
script:
# code testing (with code coverage checking)
- pytest -vv --cov-report=term --cov=ibmpairs/ --capture=no
# testing documentation generation
- cd docs && make html
# testing code coverage report generation
- cd .. && coverage html
# publish code coverage to GitHub
#after_success:
#- codecov