forked from aboutcode-org/scancode-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
legacy.travis.yml
78 lines (69 loc) · 2.18 KB
/
legacy.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
################################################################################
# We use Travis to run minimal smoke tests suites on Pythons 3.6
# on macOS and Linux
# We also run the documentation build and the ABOUT file checks
################################################################################
language: python
matrix:
include:
# Run minimal test suite
- os: osx
env:
- PYTHON=36
- TEST_SUITE="bin/py.test -vvs --reruns 3 tests/scancode"
language: generic
- 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 tests/scancode"
language: python
python: "3.6"
dist: bionic
# Check and lint the documentation files
- os: linux
sudo: required
script:
- source bin/activate
- cd docs
- pip install -r requirements-doc.txt
# 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
# Check and lint .ABOUT files
- os: linux
sudo: required
script:
- source bin/activate
- ./bin/about check thirdparty/
- ./bin/about check src/
- ./bin/about check etc/
- ./bin/about check scancode-toolkit.ABOUT
language: python
python: "3.6"
dist: bionic
before_install:
- chmod +x ./docs/scripts/sphinx_build_link_check.sh
- chmod +x ./docs/scripts/doc8_style_check.sh
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
source ./etc/ci/macports-ci install;
yes | sudo port install python$PYTHON;
sudo port select --set python3 python$PYTHON;
export PATH=$PATH:$(python3 -c "import site; print(site.USER_BASE)")/bin;
python3 --version;
fi
install:
- ./configure --dev
script:
# If debugging, use a subset of tests to wait less:
# - ./bin/py.test -n 2 -vvs tests/scancode
# - echo $TEST_SUITE
- $TEST_SUITE