Skip to content

Commit b632341

Browse files
committed
ci: add Linux Anaconda jobs
1 parent 75dc1a2 commit b632341

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
jobs:
2+
- job: ${{ parameters.name }}
3+
pool:
4+
vmImage: ${{ parameters.vmImage }}
5+
strategy:
6+
matrix:
7+
Python2.7:
8+
python_version: '2.7'
9+
Python3.5:
10+
python_version: '3.5'
11+
Python3.6:
12+
python_version: '3.6'
13+
Python3.7:
14+
python_version: '3.7'
15+
16+
variables:
17+
# Enable fuzzing tests, other expensive tests.
18+
ZSTD_SLOW_TESTS: '1'
19+
20+
# Make all compile warnings fatal.
21+
ZSTD_WARNINGS_AS_ERRORS: '1'
22+
23+
# More thorough fuzzing coverage.
24+
HYPOTHESIS_PROFILE: ci
25+
26+
steps:
27+
- bash: echo "##vso[task.prependpath]$CONDA/bin"
28+
displayName: Add conda to PATH
29+
30+
- bash: conda create --yes --quiet --name env python=$PYTHON_VERSION
31+
displayName: Create Anaconda environment
32+
33+
- bash: |
34+
source activate env
35+
conda install --yes --quiet --name env conda-build pip
36+
pip install --require-hashes -r ci/requirements.txt
37+
displayName: Install dependencies
38+
39+
- bash: |
40+
source activate env
41+
conda build ci/conda
42+
python ci/copy-conda-package.py
43+
displayName: Build and Test
44+
45+
- task: PublishPipelineArtifact@1
46+
inputs:
47+
path: $(System.DefaultWorkingDirectory)/dist

ci/azure-pipelines.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ jobs:
111111
vmImage: vs2017-win2016
112112
arch: x64
113113

114+
- template: azure-pipelines-anaconda-linux-template.yml
115+
parameters:
116+
name: Linux_Anaconda
117+
vmImage: ubuntu-16.04
118+
114119
- template: azure-pipelines-anaconda-windows-template.yml
115120
parameters:
116121
name: Windows_Anaconda

ci/download-pipeline-artifacts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
URL = 'https://dev.azure.com/gregoryszorc/python-zstandard/_apis/build/builds/{build}/artifacts?api-version=4.1'
1414

1515
FETCH_NAME_PREFIXES = (
16+
'LinuxAnaconda',
1617
'MacOSWheel',
1718
'ManyLinuxWheel',
1819
'SourceDistribution',

0 commit comments

Comments
 (0)