@@ -23,24 +23,24 @@ jobs:
23
23
matrix :
24
24
${{ insert }} : ${{ parameters.matrix }}
25
25
steps :
26
- # - checkout: self
27
- # submodules: true
26
+ - checkout : self
27
+ submodules : true
28
28
29
- # - task: UsePythonVersion@0
30
- # inputs:
31
- # versionSpec: $(PYTHON_VERSION)
32
- # architecture: $(PYTHON_ARCH)
33
- # displayName: Set python version
29
+ - task : UsePythonVersion@0
30
+ inputs :
31
+ versionSpec : $(PYTHON_VERSION)
32
+ architecture : $(PYTHON_ARCH)
33
+ displayName : Set python version
34
34
35
- # - bash: |
36
- # set -e
35
+ - bash : |
36
+ set -e
37
37
38
- # echo PYTHON $PYTHON_VERSION $PYTHON_ARCH
39
- # echo Build Reason: $BUILD_REASON
40
- # python --version
41
- # python -c "import struct; print(struct.calcsize('P') * 8)"
42
- # pip --version
43
- # displayName: Check that we have the expected version and architecture for Python
38
+ echo PYTHON $PYTHON_VERSION $PYTHON_ARCH
39
+ echo Build Reason: $BUILD_REASON
40
+ python --version
41
+ python -c "import struct; print(struct.calcsize('P') * 8)"
42
+ pip --version
43
+ displayName: Check that we have the expected version and architecture for Python
44
44
45
45
- bash : |
46
46
set -e
@@ -62,51 +62,51 @@ jobs:
62
62
echo "##vso[task.setvariable variable=PYTHON_EXE]$PYTHON_EXE"
63
63
displayName: Define build env variables
64
64
65
- # - bash: |
66
- # set -e
67
- # cd scikit-learn
68
- # git checkout $BUILD_COMMIT
69
- # git clean -fxd
70
- # git reset --hard
71
- # displayName: Checkout scikit-learn commit
72
- # condition: eq(variables['SKIP_BUILD'], 'false')
73
-
74
- # - bash: |
75
- # set -e
76
-
77
- # pip install --timeout=60 numpy==$NP_BUILD_DEP
78
- # pip install --timeout=60 pytest wheel joblib scipy==$SCIPY_BUILD_DEP Cython==$CYTHON_BUILD_DEP
79
- # pip install twine
80
-
81
- # pushd scikit-learn
82
- # python setup.py build
83
- # python ../azure/vendor_vcomp140.py
84
- # python setup.py bdist_wheel
85
- # ls dist
86
- # twine check dist/*
87
- # popd
88
- # displayName: Build wheel
89
- # condition: eq(variables['SKIP_BUILD'], 'false')
90
-
91
- # - bash: |
92
- # set -e
93
- # source extra_functions.sh
94
- # setup_test_venv
95
- # pip install scikit-learn/dist/scikit_learn-*.whl
96
- # mkdir $TEST_DIR
97
- # pushd $TEST_DIR
98
- # pytest -rs -l --junitxml=$JUNITXML --pyargs sklearn
99
- # popd
100
- # teardown_test_venv
101
- # displayName: Install wheel and test
102
- # condition: eq(variables['SKIP_BUILD'], 'false')
103
-
104
- # - task: PublishTestResults@2
105
- # inputs:
106
- # testResultsFiles: "$(TEST_DIR)/$(JUNITXML)"
107
- # testRunTitle: ${{ format('{0}-$(Agent.JobName)', parameters.name) }}
108
- # displayName: "Publish Test Results"
109
- # condition: eq(variables['SKIP_BUILD'], 'false')
65
+ - bash : |
66
+ set -e
67
+ cd scikit-learn
68
+ git checkout $BUILD_COMMIT
69
+ git clean -fxd
70
+ git reset --hard
71
+ displayName: Checkout scikit-learn commit
72
+ condition: eq(variables['SKIP_BUILD'], 'false')
73
+
74
+ - bash : |
75
+ set -e
76
+
77
+ pip install --timeout=60 numpy==$NP_BUILD_DEP
78
+ pip install --timeout=60 pytest wheel joblib scipy==$SCIPY_BUILD_DEP Cython==$CYTHON_BUILD_DEP
79
+ pip install twine
80
+
81
+ pushd scikit-learn
82
+ python setup.py build
83
+ python ../azure/vendor_vcomp140.py
84
+ python setup.py bdist_wheel
85
+ ls dist
86
+ twine check dist/*
87
+ popd
88
+ displayName: Build wheel
89
+ condition: eq(variables['SKIP_BUILD'], 'false')
90
+
91
+ - bash : |
92
+ set -e
93
+ source extra_functions.sh
94
+ setup_test_venv
95
+ pip install scikit-learn/dist/scikit_learn-*.whl
96
+ mkdir $TEST_DIR
97
+ pushd $TEST_DIR
98
+ pytest -rs -l --junitxml=$JUNITXML --pyargs sklearn
99
+ popd
100
+ teardown_test_venv
101
+ displayName: Install wheel and test
102
+ condition: eq(variables['SKIP_BUILD'], 'false')
103
+
104
+ - task : PublishTestResults@2
105
+ inputs :
106
+ testResultsFiles : " $(TEST_DIR)/$(JUNITXML)"
107
+ testRunTitle : ${{ format('{0}-$(Agent.JobName)', parameters.name) }}
108
+ displayName : " Publish Test Results"
109
+ condition : eq(variables['SKIP_BUILD'], 'false')
110
110
111
111
- bash : |
112
112
set -e
0 commit comments