forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
104 lines (96 loc) · 3.29 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<<<<<<< HEAD
# https://travis-ci.org/pytorch/pytorch
language: python
dist: trusty
git:
submodules: false
# This reportedly works around an issue downloading packages from pypi on
# travis. Consider removing this after the underlying issue is fixed.
# https://github.com/travis-ci/travis-ci/issues/2389
sudo: false
matrix:
fast_finish: true
include:
- name: "Ensure consistent CircleCI YAML"
python: "3.7"
dist: xenial
script: cd .circleci && ./ensure-consistency.py
- name: "Shellcheck Jenkins scripts"
dist: xenial
install: sudo apt-get install -y shellcheck
script: .jenkins/run-shellcheck.sh
- name: "Ensure no tabs"
python: "2.7"
script:
- (! git grep -I -l $'\t' -- . ':(exclude)*.svg' ':(exclude)**Makefile' ':(exclude)**/contrib/**' ':(exclude)third_party' ':(exclude).gitattributes' ':(exclude).gitmodules' || (echo "The above files have tabs; please convert them to spaces"; false))
- name: "Python 2.7 Lint"
python: "2.7"
install: pip install flake8
script:
# NB: Exclude .circleci as it is Python 3 only
- rm -rf .circleci
- flake8
- name: "Python 3.7 Lint"
python: "3.7"
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
install:
- pip install flake8 flake8-bugbear flake8-mypy flake8-comprehensions flake8-pyi mccabe pycodestyle pyflakes
script: flake8
- name: "MyPy typecheck"
python: "3.6"
install: pip install mypy mypy-extensions
script: mypy @mypy-files.txt
- name: "CPP doc check"
python: "3.6"
install:
- sudo apt-get install -y doxygen
- pip install -r requirements.txt
script: cd docs/cpp/source && ./check-doxygen.sh
- name: "clang tidy"
python: "3.6"
script: tools/run-clang-tidy-in-ci.sh
<<<<<<< HEAD
=======
# make it explicit that we favor the new container-based travis workers
language: python
cache:
apt: true
directories:
- $HOME/.cache/pip
- $HOME/.ccache
dist: xenial
env:
global:
# Directory where tests are run from
- TEST_DIR=/tmp/sklearn
- OMP_NUM_THREADS=4
- OPENBLAS_NUM_THREADS=4
matrix:
include:
# Linux environment to test scikit-learn against numpy and scipy master
# installed from their CI wheels in a virtualenv with the Python
# interpreter provided by travis.
- python: 3.7
env: DISTRIB="scipy-dev" CHECK_WARNINGS="true"
if: type = cron OR commit_message =~ /\[scipy-dev\]/
install: source build_tools/travis/install.sh
script:
- bash build_tools/travis/test_script.sh
- bash build_tools/travis/test_docs.sh
- bash build_tools/travis/test_pytest_soft_dependency.sh
after_success: source build_tools/travis/after_success.sh
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/4ffabb4df010b70cd624
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
>>>>>>> upstream/master
=======
branches:
only:
- master
- /gh\/.*\/base/
>>>>>>> upstream/master