forked from aboutcode-org/scancode-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
159 lines (145 loc) · 4.91 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
matrix:
include:
- os: osx
env:
- PYTHON="3.6.8"
- TEST_SUITE="bin/py.test -vvs --reruns 3 --cov=src --cov-report=term --cov-report=xml -n2 --ignore=tests/scancode"
language: generic
python:
- os: osx
env:
- PYTHON="3.6.8"
- TEST_SUITE="bin/py.test -vvs --reruns 3 tests/scancode"
language: generic
python:
- os: osx
env:
- PYTHON="2.7.15"
- TEST_SUITE="bin/py.test -vvs --reruns 3 --cov=src --cov-report=term --cov-report=xml -n2 --ignore=tests/scancode"
language: generic
python:
- os: osx
env:
- PYTHON="2.7.15"
- TEST_SUITE="bin/py.test -vvs --reruns 3 --cov=src --cov-report=term --cov-report=xml tests/scancode"
language: generic
python:
- os: linux
sudo: required
env: TEST_SUITE="bin/py.test -vvs --reruns 3 --cov=src --cov-report=term --cov-report=xml -n2 --ignore=tests/scancode"
language: python
python: "2.7"
dist: xenial
- os: linux
sudo: required
env: TEST_SUITE="bin/py.test -vvs --reruns 3 --cov=src --cov-report=term --cov-report=xml tests/scancode"
language: python
python: "2.7"
dist: xenial
- os: linux
sudo: required
env: TEST_SUITE="bin/py.test -vvs --reruns 3 --cov=src --cov-report=term --cov-report=xml -n2 --ignore=tests/scancode"
language: python
python: "2.7"
dist: bionic
- os: linux
sudo: required
env: TEST_SUITE="bin/py.test -vvs --reruns 3 --cov=src --cov-report=term --cov-report=xml tests/scancode"
language: python
python: "2.7"
dist: bionic
- os: linux
sudo: required
env: TEST_SUITE="bin/py.test -vvs --reruns 3 --cov=src --cov-report=term --cov-report=xml -n2 --ignore=tests/scancode"
language: python
python: "3.6"
dist: xenial
- os: linux
sudo: required
env: TEST_SUITE="bin/py.test -vvs --reruns 3 tests/scancode"
language: python
python: "3.6"
dist: xenial
- os: linux
sudo: required
env: TEST_SUITE="bin/py.test -vvs --reruns 3 --cov=src --cov-report=term --cov-report=xml -n2 --ignore=tests/scancode"
language: python
python: "3.6"
dist: bionic
- os: linux
sudo: required
env: TEST_SUITE="bin/py.test -vvs --reruns 3 tests/scancode"
language: python
python: "3.6"
dist: bionic
# Refer https://scancode-toolkit.readthedocs.io/en/latest/contribute/contrib_doc.html#continuous-integration
- os: linux
sudo: required
script:
- source bin/activate
- cd docs
# Check that the Sphinx Documentation build minimally
- sphinx-build -E source build
# Check for documentation style errors
- ./scripts/doc8_style_check.sh
language: python
python: "3.6"
dist: bionic
- os: linux
sudo: required
script:
# This checks .ABOUT file links using `about check`
- source bin/activate
- ./bin/about check thirdparty/
language: python
python: "3.6"
dist: bionic
# Refer https://github.com/dkhamsing/awesome_bot#command-line for more info.
- os: linux
sudo: required
before_install:
- gem install awesome_bot
script:
# These check for broken links inside .md files used for GitHub templates
- awesome_bot .github/*.md --allow-redirect --allow-dupe --skip-save-results
- awesome_bot .github/ISSUE_TEMPLATE/*.md --allow-redirect --allow-dupe --skip-save-results
# This checks for broken links inside .rst files at Project Root, like README.rst
- awesome_bot *.rst --allow-redirect --allow-dupe --skip-save-results
# This checks for broken links inside README.md files of plugins/plugins-builtin folders.
- awesome_bot */**/*.md --allow-redirect --allow-dupe --skip-save-results
# This checks for broken links inside Thirdparty .ABOUT files
- awesome_bot thirdparty/*.ABOUT --allow-redirect --allow-dupe --skip-save-results
addons:
homebrew:
packages:
- openssl
- readline
- sqlite3
- xz
- zlib
- pyenv
update: true
before_install:
- chmod +x ./docs/scripts/sphinx_build_link_check.sh
- chmod +x ./docs/scripts/doc8_style_check.sh
install:
- ./configure
script:
# If debugging, use a subset of tests to wait less:
# - ./bin/py.test -n 2 -vvs --cov=src tests/scancode
# - echo $TEST_SUITE
- $TEST_SUITE
# Pay attention to both calls below. They will succeed even if there
# is no coverage information or connection to reporting website fails.
after_success:
- ./bin/codecov
notifications:
irc:
channels:
- "chat.freenode.net#aboutcode"
on_success: change
on_failure: always
use_notice: true
skip_join: true
template:
- "%{repository_slug}#%{build_number} (%{branch}-%{commit}:%{author})-%{message}- %{build_url}"