Skip to content

Commit e13107d

Browse files
committed
🔨 migrate azure ci build from yehua to pypi-mobans. resolves #133
1 parent f541276 commit e13107d

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

statics/azure/azure-pipelines.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Starter pipeline
2+
# Add steps that build, run tests, deploy, and more:
3+
# https://aka.ms/yaml
4+
jobs:
5+
- job: 'Windows'
6+
pool:
7+
vmImage: vs2017-win2016
8+
steps:
9+
- template: '.azure-pipelines-steps.yml'
10+
- job: 'MacOS'
11+
pool:
12+
vmImage: macOS-10.13
13+
steps:
14+
- template: '.azure-pipelines-steps-macos.yml'
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
steps:
2+
- task: UsePythonVersion@0
3+
displayName: 'Use Python 3.x'
4+
- script: |
5+
python -m pip install --upgrade pip setuptools wheel
6+
test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt
7+
pip install -r requirements.txt
8+
pip install -r tests/requirements.txt
9+
displayName: 'Setup dependencies'
10+
- script: |
11+
make
12+
displayName: 'Run tests'

statics/azure/pipelines-steps.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
steps:
2+
- task: UsePythonVersion@0
3+
displayName: 'Use Python 3.x'
4+
- script: |
5+
python -m pip install --upgrade pip setuptools wheel
6+
if exist rnd_requirements.txt pip install -r rnd_requirements.txt
7+
pip install -r requirements.txt
8+
pip install -r tests\requirements.txt
9+
displayName: 'Setup dependencies'
10+
- script: |
11+
test.bat
12+
displayName: 'Run tests'

0 commit comments

Comments
 (0)