|
| 1 | +# Starter pipeline |
| 2 | +# Start with a minimal pipeline that you can customize to build and deploy your code. |
| 3 | +# Add steps that build, run tests, deploy, and more: |
| 4 | +# https://aka.ms/yaml |
| 5 | + |
| 6 | +name: $(Build.SourceVersion) |
| 7 | +jobs: |
| 8 | +- job: Linux |
| 9 | + timeoutInMinutes: 0 |
| 10 | + pool: |
| 11 | + vmImage: 'Ubuntu 16.04' |
| 12 | + |
| 13 | + variables: |
| 14 | + ESY__CACHE_INSTALL_PATH: /home/vsts/.esy/3_____________________________________________________________________/i/ |
| 15 | + ESY__CACHE_SOURCE_TARBALL_PATH: /home/vsts/.esy/source/i |
| 16 | + |
| 17 | + steps: |
| 18 | + # TODO: Uncomment both this and 'publish-build-cache' below to enable build caching for Linux. |
| 19 | + # - template: .ci/restore-build-cache.yml |
| 20 | + - template: .ci/esy-build-steps.yml |
| 21 | + # - template: .ci/publish-build-cache.yml |
| 22 | + |
| 23 | +- job: MacOS |
| 24 | + timeoutInMinutes: 0 |
| 25 | + pool: |
| 26 | + vmImage: 'macOS 10.13' |
| 27 | + |
| 28 | + variables: |
| 29 | + ESY__CACHE_INSTALL_PATH: /Users/vsts/.esy/3____________________________________________________________________/i/ |
| 30 | + ESY__CACHE_SOURCE_TARBALL_PATH: /Users/vsts/.esy/source/i |
| 31 | + |
| 32 | + steps: |
| 33 | + # TODO: Uncomment both this and 'publish-build-cache' below to enable build caching for Mac. |
| 34 | + # - template: .ci/restore-build-cache.yml |
| 35 | + - template: .ci/esy-build-steps.yml |
| 36 | + # - template: .ci/publish-build-cache.yml |
| 37 | + |
| 38 | +- job: Windows |
| 39 | + timeoutInMinutes: 0 |
| 40 | + pool: |
| 41 | + vmImage: 'vs2017-win2016' |
| 42 | + |
| 43 | + variables: |
| 44 | + ESY__CACHE_INSTALL_PATH: C:\Users\VssAdministrator\.esy\3_\i |
| 45 | + ESY__CACHE_SOURCE_TARBALL_PATH: C:\Users\VssAdministrator\.esy\source\i |
| 46 | + |
| 47 | + steps: |
| 48 | + - template: .ci/restore-build-cache.yml |
| 49 | + - template: .ci/esy-build-steps.yml |
| 50 | + - template: .ci/publish-build-cache.yml |
| 51 | + |
| 52 | +- job: Release |
| 53 | + timeoutInMinutes: 0 |
| 54 | + displayName: Release |
| 55 | + dependsOn: |
| 56 | + - Linux |
| 57 | + - MacOS |
| 58 | + - Windows |
| 59 | + condition: succeeded() |
| 60 | + pool: |
| 61 | + vmImage: ubuntu-16.04 |
| 62 | + steps: |
| 63 | + - task: PublishBuildArtifacts@1 |
| 64 | + displayName: 'Release Package' |
| 65 | + inputs: |
| 66 | + PathtoPublish: '.' |
| 67 | + ArtifactName: npm-package |
0 commit comments