msix-packaging/pipelines/azure-pipelines-aosp.yml

100 строки
2.5 KiB
YAML
Исходник Обычный вид История

2019-03-09 01:03:10 +03:00
# Branches that trigger a build on commit
trigger:
- master
2019-03-28 04:03:53 +03:00
- release_v*
2019-03-09 01:03:10 +03:00
# Branches that trigger builds on PR
pr:
2019-03-28 04:03:53 +03:00
branches:
include:
- master
- release_v*
paths:
include:
- cmake/*
- lib/*
- pipelines/*
- resources/*
- samples/*
- src/*
- test/*
- CMakeLists.txt
- makeaosp.sh
- makeios.sh
- makelinux.sh
- makemac.sh
- makewin.cmd
- manifest.cmakein
2019-03-09 01:03:10 +03:00
jobs:
- job: AOSP
pool:
name: Hosted macOS
strategy:
# TODO: add builds using xerces if needed.
matrix:
debug_emulator:
_arguments: -b Debug -xzlib
2019-03-09 01:03:10 +03:00
_artifact: AOSP-x86chk
release_emulator:
_arguments: -b MinSizeRel -xzlib
2019-03-09 01:03:10 +03:00
_artifact: AOSP-x86
release_emulator_nobundle:
_arguments: -b MinSizeRel -sb -xzlib
_artifact: AOSP-x86-nobundle
2019-03-09 01:03:10 +03:00
release_arm:
_arguments: -b MinSizeRel -arch armeabi-v7a -xzlib
2019-03-09 01:03:10 +03:00
_artifact: AOSP-arm
release_arm_nobundle:
_arguments: -b MinSizeRel -arch armeabi-v7a -sb -xzlib
_artifact: AOSP-arm-nobundle
2019-03-09 01:03:10 +03:00
steps:
- task: Bash@3
displayName: Build
inputs:
targetType: filePath
filePath: ./makeaosp.sh
arguments: $(_arguments)
failOnStderr: true
condition: succeeded()
# Note: We only test for release_emulator
- task: Bash@3
displayName: AOSP BVTs
inputs:
targetType: filePath
filePath: './src/test/mobile/testaosponmac.sh'
arguments: '-c "system-images;android-26;google_apis;x86" -i -o TEST-MsixSDK-$(_artifact).xml'
workingDirectory: './src/test/mobile/'
2019-03-09 01:03:10 +03:00
condition: and(succeeded(), contains(variables['Agent.JobName'], 'release_emulator'))
- task: PublishTestResults@2
displayName: 'Publish $(_artifact) Test Results'
inputs:
failTaskOnFailedTests: true
testRunTitle: $(_artifact)
condition: and(succeededOrFailed(), contains(variables['Agent.JobName'], 'release'))
2019-03-09 01:03:10 +03:00
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: .vs
Contents: |
bin/makemsix
lib/libmsix*
lib/libmsix*/**
lib/msix-jni.jar
src/msix/AppxPackaging.hpp
src/msix/MSIXWindows.hpp
src/msix/MsixErrors.hpp
Package.nuspec
build/**
TargetFolder: '$(Build.ArtifactStagingDirectory)'
condition: succeededOrFailed()
2019-03-09 01:03:10 +03:00
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact $(_artifact)'
inputs:
ArtifactName: $(_artifact)
condition: succeededOrFailed()