|
1 | 1 | parameters: |
2 | | - name: Linux |
3 | | - vmImage: ubuntu-16.04 |
4 | | - activate: "" |
5 | | - |
| 2 | + products: |
| 3 | + - RobotLab |
| 4 | + # - ExoRobot |
| 5 | + platforms: |
| 6 | + - name: Linux |
| 7 | + vmImage: ubuntu-16.04 |
| 8 | + activate: "" |
| 9 | + - name: MacOSX |
| 10 | + vmImage: macos-10.13 |
| 11 | + activate: "" |
| 12 | + - name: Windows |
| 13 | + vmImage: vs2017-win2016 |
| 14 | + activate: call activate && |
6 | 15 | jobs: |
7 | | - - job: ${{ parameters.name }}Build |
8 | | - condition: succeeded() |
9 | | - dependsOn: |
10 | | - - lab |
11 | | - - conda_noarch |
12 | | - - ${{ if eq(parameters.name, 'Windows') }}: |
13 | | - - conda_win |
14 | | - pool: |
15 | | - vmImage: ${{ parameters.vmImage }} |
16 | | - |
17 | | - steps: |
18 | | - - template: steps.restore.yml |
19 | | - parameters: |
20 | | - name: ${{ parameters.name }} |
21 | | - |
22 | | - - task: DownloadPipelineArtifact@0 |
23 | | - inputs: |
24 | | - artifactName: robotlab app_dir |
25 | | - targetPath: _artifacts/app_dir |
26 | | - displayName: restore jupyterlab |
27 | | - |
28 | | - - template: steps.conda.yml |
29 | | - parameters: |
30 | | - name: ${{ parameters.name }} |
31 | | - envPath: ci/env-main.yml |
32 | | - |
33 | | - - script: ${{ parameters.activate }} python -m scripts.build conda |
34 | | - displayName: build/test remaining packages |
35 | | - |
36 | | - - script: ${{ parameters.activate }} python -m scripts.build constructor |
37 | | - displayName: build installer |
38 | | - |
39 | | - - ${{ if eq(parameters.name, 'MacOSX') }}: |
40 | | - - script: chmod -R 777 _artifacts |
41 | | - displayName: fix artifact permissions |
42 | | - |
43 | | - - task: PublishPipelineArtifact@1 |
44 | | - displayName: publish installer |
45 | | - inputs: |
46 | | - targetPath: _artifacts/constructor |
47 | | - artifactName: RobotLab for ${{ parameters.name }} |
| 16 | + - ${{ each product in parameters.products }}: |
| 17 | + - ${{ each platform in parameters.platforms }}: |
| 18 | + - job: ${{ product }}${{ platform.name }}Build |
| 19 | + pool: |
| 20 | + vmImage: ${{ platform.vmImage }} |
48 | 21 | condition: succeeded() |
| 22 | + dependsOn: |
| 23 | + - CondaNoarch |
| 24 | + - ${{ if eq(product, 'RobotLab') }}: |
| 25 | + - Lab |
| 26 | + - ${{ if eq(platform.name, 'Windows') }}: |
| 27 | + - CondaWindows |
| 28 | + |
| 29 | + steps: |
| 30 | + - template: steps.restore.yml |
| 31 | + parameters: |
| 32 | + name: ${{ platform.name }} |
| 33 | + |
| 34 | + - ${{ if eq(product, 'RobotLab') }}: |
| 35 | + - task: DownloadPipelineArtifact@0 |
| 36 | + inputs: |
| 37 | + artifactName: robotlab app_dir $(Build.BuildId) |
| 38 | + targetPath: _artifacts/app_dir |
| 39 | + displayName: restore jupyterlab |
| 40 | + |
| 41 | + - template: steps.conda.yml |
| 42 | + parameters: |
| 43 | + name: ${{ platform.name }} |
| 44 | + envPath: ci/env-main.yml |
| 45 | + |
| 46 | + - ${{ if eq(product, 'RobotLab') }}: |
| 47 | + - script: ${{ platform.activate }} python -m scripts.build conda |
| 48 | + displayName: build/test remaining packages |
| 49 | + |
| 50 | + - script: ${{ platform.activate }} python -m scripts.build constructor ${{ product }} |
| 51 | + displayName: build installer |
| 52 | + |
| 53 | + - ${{ if eq(platform.name, 'MacOSX') }}: |
| 54 | + - script: chmod -R 777 _artifacts |
| 55 | + displayName: fix artifact permissions |
| 56 | + |
| 57 | + - task: PublishPipelineArtifact@1 |
| 58 | + displayName: publish installer |
| 59 | + inputs: |
| 60 | + targetPath: _artifacts/constructor |
| 61 | + artifactName: ${{ product }} for ${{ platform.name }} $(Build.BuildId) |
| 62 | + condition: succeeded() |
0 commit comments