|
1 | 1 |
|
2 | 2 | ################################################################################ |
3 | | -# We use Azure to run the full tests suites on Pythons 2.7 and 3.6 |
| 3 | +# We use Azure to run the full tests suites on Pythons 3.6 and above. |
4 | 4 | # on Windows (32 and 64), macOS and Linux (64 various distro) |
5 | 5 | ################################################################################ |
6 | 6 |
|
7 | 7 | jobs: |
8 | 8 |
|
9 | | -################################################################################ |
10 | | -# These jobs are using VMs and Azure-provided Pythons 2.7 |
11 | | -################################################################################ |
12 | | - |
13 | | - - template: etc/ci/azure-linux.yml |
14 | | - parameters: |
15 | | - job_name: vm_ubuntu16_py27 |
16 | | - image_name: ubuntu-16.04 |
17 | | - python_versions: ['2.7'] |
18 | | - test_suites: |
19 | | - misc: | |
20 | | - bin/py.test -n 2 -vvs --reruns=3 --test-suite=all \ |
21 | | - --ignore=tests/scancode \ |
22 | | - --ignore=tests/cluecode \ |
23 | | - --ignore=tests/licensedcode \ |
24 | | - --cov=src --cov-report=term --cov-report=xml |
25 | | - bin/codecov --token "$CODECOV_TOKEN" |
26 | | -
|
27 | | - scancode: | |
28 | | - bin/py.test --reruns=3 -vvs --test-suite=all \ |
29 | | - tests/scancode \ |
30 | | - --cov=src --cov-report=term --cov-report=xml |
31 | | - bin/codecov --token "$CODECOV_TOKEN" |
32 | | -
|
33 | | - cluecode: | |
34 | | - bin/py.test -n 2 --reruns=3 -vvs --test-suite=all \ |
35 | | - tests/cluecode \ |
36 | | - --cov=src --cov-report=term --cov-report=xml |
37 | | - bin/codecov --token "$CODECOV_TOKEN" |
38 | | -
|
39 | | - license_base: | |
40 | | - bin/py.test -n 2 --reruns=3 -vvs --test-suite=all \ |
41 | | - --ignore=tests/licensedcode/test_zzzz_cache.py \ |
42 | | - --ignore=tests/licensedcode/test_detection_datadriven1.py \ |
43 | | - --ignore=tests/licensedcode/test_detection_datadriven2.py \ |
44 | | - tests/licensedcode \ |
45 | | - --cov=src --cov-report=term --cov-report=xml |
46 | | - bin/codecov --token "$CODECOV_TOKEN" |
47 | | -
|
48 | | - license_datadriven1: | |
49 | | - bin/py.test -n 2 --reruns=3 -vvs --test-suite=all \ |
50 | | - tests/licensedcode/test_detection_datadriven1.py \ |
51 | | - --cov=src --cov-report=term --cov-report=xml |
52 | | - bin/codecov --token "$CODECOV_TOKEN" |
53 | | -
|
54 | | - license_datadriven2: | |
55 | | - bin/py.test -n 2 --reruns=3 -vvs --test-suite=all \ |
56 | | - tests/licensedcode/test_detection_datadriven2.py \ |
57 | | - --cov=src --cov-report=term --cov-report=xml |
58 | | - bin/codecov --token "$CODECOV_TOKEN" |
59 | | -
|
60 | | - license_cache: | |
61 | | - bin/py.test -n 2 --reruns=3 -vvs --test-suite=all \ |
62 | | - tests/licensedcode/test_zzzz_cache.py \ |
63 | | - --cov=src --cov-report=term --cov-report=xml |
64 | | - bin/codecov --token "$CODECOV_TOKEN" |
65 | | -
|
66 | | - - template: etc/ci/azure-win.yml |
67 | | - parameters: |
68 | | - job_name: Win2016_32_py27 |
69 | | - image_name: vs2017-win2016 |
70 | | - python_versions: ['2.7'] |
71 | | - python_architecture: x86 |
72 | | - test_suites: |
73 | | - misc: Scripts\py.test -vvs --reruns=3 --ignore=tests\scancode --ignore=tests\cluecode --ignore=tests\licensedcode |
74 | | - scancode: Scripts\py.test -vvs --reruns=3 tests\scancode |
75 | | - lic_cluecode: Scripts\py.test -vvs --reruns=3 tests\cluecode tests\licensedcode |
76 | | - |
77 | | - - template: etc/ci/azure-win.yml |
78 | | - parameters: |
79 | | - job_name: Win2016_64_py27 |
80 | | - image_name: vs2017-win2016 |
81 | | - python_versions: ['2.7'] |
82 | | - python_architecture: x64 |
83 | | - test_suites: |
84 | | - misc: Scripts\py.test -vvs --reruns=3 --ignore=tests\scancode --ignore=tests\cluecode --ignore=tests\licensedcode |
85 | | - scancode: Scripts\py.test -vvs --reruns=3 tests\scancode |
86 | | - lic_cluecode: Scripts\py.test -vvs --reruns=3 tests\cluecode tests\licensedcode |
87 | | - |
88 | | - - template: etc/ci/azure-mac.yml |
89 | | - parameters: |
90 | | - job_name: macos1015_py27 |
91 | | - image_name: macos-10.15 |
92 | | - python_versions: ['2.7'] |
93 | | - test_suites: |
94 | | - all: bin/py.test -n 2 -vvs --reruns=3 --ignore=tests/scancode |
95 | | - scancode: bin/py.test -vvs --reruns=3 tests/scancode |
96 | | - |
97 | | - |
98 | | -################################################################################ |
99 | | -# These jobs are using containers and their own Python 2.7 |
100 | | -################################################################################ |
101 | | - |
102 | | - - template: etc/ci/azure-container-deb.yml |
103 | | - parameters: |
104 | | - job_name: ubuntu18_py27 |
105 | | - container: 'ubuntu:bionic' |
106 | | - python_path: python2.7 |
107 | | - python_version: '2.7' |
108 | | - install_python: sudo apt-get install -y python python-dev |
109 | | - test_suite_label: all |
110 | | - test_suite: bin/py.test -n 2 -vvs --reruns=3 |
111 | | - |
112 | | -# - template: etc/ci/azure-container-rpm.yml |
113 | | -# parameters: |
114 | | -# job_name: centos7_py27 |
115 | | -# container: centos:7 |
116 | | -# python_path: python2.7 |
117 | | -# python_version: '2.7' |
118 | | -# install_python: sudo yum install -y python python27-devel |
119 | | -# test_suite_label: all |
120 | | -# test_suite: bin/py.test -n 2 -vvs --reruns=3 |
121 | | -# |
122 | | -# - template: etc/ci/azure-container-rpm.yml |
123 | | -# parameters: |
124 | | -# job_name: manylinux1_py27 |
125 | | -# container: quay.io/pypa/manylinux1_x86_64:latest |
126 | | -# python_path: /opt/python/cp27-cp27mu/bin/python |
127 | | -# python_version: '2.7' |
128 | | -# install_packages: echo "No extra packages for now" |
129 | | -# install_python: echo "Python is pre-installed" |
130 | | -# test_suite_label: all |
131 | | -# test_suite: bin/py.test -n 2 -vvs --reruns=3 |
132 | | -# |
133 | | -# - template: etc/ci/azure-container-rpm.yml |
134 | | -# parameters: |
135 | | -# job_name: manylinux2010_py27 |
136 | | -# container: quay.io/pypa/manylinux2010_x86_64:latest |
137 | | -# python_path: /opt/python/cp27-cp27mu/bin/python |
138 | | -# python_version: '2.7' |
139 | | -# install_packages: echo "No extra packages for now" |
140 | | -# install_python: echo "Python is pre-installed" |
141 | | -# test_suite_label: all |
142 | | -# test_suite: bin/py.test -n 2 -vvs --reruns=3 |
143 | | -# |
144 | | -# - template: etc/ci/azure-container-rpm.yml |
145 | | -# parameters: |
146 | | -# job_name: fedora30_py27 |
147 | | -# container: fedora:30 |
148 | | -# package_manager: dnf |
149 | | -# python_path: python2.7 |
150 | | -# python_version: '2.7' |
151 | | -# install_python: | |
152 | | -# set -e -x |
153 | | -# sudo dnf install -y python2 python2-devel |
154 | | -# test_suite_label: all |
155 | | -# test_suite: bin/py.test -n 2 -vvs --reruns=3 |
156 | | -# |
157 | | -# - template: etc/ci/azure-container-deb.yml |
158 | | -# parameters: |
159 | | -# job_name: debian9_py27 |
160 | | -# container: debian:stretch |
161 | | -# python_path: python2.7 |
162 | | -# python_version: '2.7' |
163 | | -# install_python: sudo apt-get install -y python python-dev |
164 | | -# test_suite_label: all |
165 | | -# test_suite: bin/py.test -n 2 -vvs --reruns=3 |
166 | | - |
167 | | - |
168 | | -######################################################################## |
169 | | -# RELEASE on 2.7. Also check that we can pip install |
170 | | -######################################################################## |
171 | | - |
172 | | - - job: Build_release_archive_py2 |
173 | | - pool: |
174 | | - vmImage: ubuntu-16.04 |
175 | | - steps: |
176 | | - - checkout: self |
177 | | - fetchDepth: 10 |
178 | | - |
179 | | - - task: UsePythonVersion@0 |
180 | | - inputs: |
181 | | - versionSpec: '2.7' |
182 | | - displayName: 'Install Python 2.7' |
183 | | - |
184 | | - - script: ./etc/release/release.sh |
185 | | - displayName: 'Build installable releases' |
186 | | - |
187 | | - - script: ./etc/release/pip-install2.sh |
188 | | - displayName: 'Test pip installation' |
189 | | - |
190 | | - |
191 | 9 | ######################################################################## |
192 | 10 | # RELEASE on 3.6. Also check that we can pip install |
193 | 11 | ######################################################################## |
|
0 commit comments