ardupilot/.azure/azure-pipelines.yml

65 lines
2.0 KiB
YAML
Raw Normal View History

2018-12-14 17:12:34 -04:00
jobs:
- job: sitl
displayName: 'Cygwin SITL build'
pool:
2020-03-23 14:41:56 -03:00
vmImage: 'windows-latest'
2018-12-14 17:12:34 -04:00
condition: ne(variables['Build.Reason'], 'Schedule')
steps:
- script: choco install cygwin --params "/InstallDir:C:\Cygwin /NoStartMenu /NoAdmin"
displayName: 'Install Cygwin'
2019-02-26 10:10:18 -04:00
2019-06-11 17:00:38 -03:00
- script: choco install cygwin32-gcc-g++ python2 python27 python27-future python27-lxml git gettext --source cygwin
2018-12-14 17:12:34 -04:00
displayName: 'Install Cygwin packages'
2019-02-26 10:10:18 -04:00
- script: C:\Cygwin\bin\bash --login -c "cd $(cygpath '%BUILD_SOURCESDIRECTORY%') &&
mkdir artifacts &&
(./waf --color yes --toolchain i686-pc-cygwin --board sitl configure bin 2>&1) | tee artifacts/build.txt"
2018-12-14 17:12:34 -04:00
displayName: 'Build SITL'
2019-02-26 10:10:18 -04:00
- script: C:\Cygwin\bin\bash --login -c "cd $(cygpath '%BUILD_SOURCESDIRECTORY%') &&
cp -v build/sitl/bin/* artifacts/ &&
cp -v $(i686-pc-cygwin-g++ -print-sysroot)/usr/bin/*.dll artifacts/ &&
git log -1 > artifacts/git.txt"
2018-12-14 17:12:34 -04:00
displayName: 'Copy dependencies to build dir'
2019-02-26 10:10:18 -04:00
2018-12-14 17:12:34 -04:00
- task: PublishBuildArtifacts@1
# - task: PublishPipelineArtifact@0
displayName: 'Publish build artifacts'
inputs:
artifactName: 'Cygwin SITL binaries'
2019-02-26 10:10:18 -04:00
pathtoPublish: 'artifacts'
# targetPath: 'artifacts'
2018-12-14 17:12:34 -04:00
- template: autotest_template.yml
parameters:
name: 'Copter'
build_target: 'ArduCopter'
action_target: 'ArduCopter'
- template: autotest_template.yml
parameters:
name: 'Plane'
build_target: 'ArduPlane'
action_target: 'ArduPlane'
- template: autotest_template.yml
parameters:
name: 'Quadplane'
build_target: 'ArduPlane'
action_target: 'QuadPlane'
- template: autotest_template.yml
parameters:
name: 'Rover'
build_target: 'APMrover2'
action: 'drive'
action_target: 'APMrover2'
- template: autotest_template.yml
parameters:
name: 'Sub'
build_target: 'ArduSub'
action: 'dive'
action_target: 'ArduSub'