Azure: fix autotest

python3 is missing thus we need to rely on the python symlink we made
This commit is contained in:
Pierre Kancir 2021-01-01 20:22:30 +01:00 committed by Andrew Tridgell
parent 96981baadf
commit df0eb4ea8a

View File

@ -10,15 +10,17 @@ jobs:
steps: steps:
- script: choco install cygwin --params "/InstallDir:C:\Cygwin /NoStartMenu /NoAdmin" - script: choco install cygwin --params "/InstallDir:C:\Cygwin /NoStartMenu /NoAdmin"
displayName: 'Install Cygwin' displayName: 'Install Cygwin'
- script: choco install gcc-g++ python36 python36-devel python36-future python36-lxml python36-pip python36-pexpect python36-numpy git gettext libcrypt-devel --source cygwin - script: choco install gcc-g++ python36 python36-devel python36-future python36-lxml python36-pip python36-setuptools python36-wheel python36-pexpect python36-numpy git gettext libcrypt-devel --source cygwin
displayName: 'Install Cygwin packages' displayName: 'Install Cygwin packages'
- script: git submodule update --recursive --init modules/mavlink - script: git submodule update --recursive --init modules/mavlink
displayName: Initialize MAVLink submodule displayName: Initialize MAVLink submodule
- script: git submodule update --recursive --init modules/uavcan - script: git submodule update --recursive --init modules/uavcan
displayName: 'Initialize UAVCAN submodule' displayName: 'Initialize UAVCAN submodule'
- script: C:\Cygwin\bin\bash --login -c "cd $(cygpath '%BUILD_SOURCESDIRECTORY%')/modules/mavlink/pymavlink && python3 setup.py build install --user" - script: C:\Cygwin\bin\bash --login -c "ln -sf /usr/bin/python3.6 /usr/bin/python && ln -sf /usr/bin/pip3.6 /usr/bin/pip"
displayName: 'Make Python 3.6 the default Python'
- script: C:\Cygwin\bin\bash --login -c "cd $(cygpath '%BUILD_SOURCESDIRECTORY%')/modules/mavlink/pymavlink && python setup.py build install --user"
displayName: 'Install pymavlink from submodule' displayName: 'Install pymavlink from submodule'
- script: C:\Cygwin\bin\bash --login -c "pip3 install MAVProxy" - script: C:\Cygwin\bin\bash --login -c "pip install MAVProxy"
displayName: 'Install MAVProxy in Cygwin' displayName: 'Install MAVProxy in Cygwin'
- script: C:\Cygwin\bin\bash --login -c "cd $(cygpath '%BUILD_SOURCESDIRECTORY%') && Tools/autotest/autotest.py ${{ format('build.{0} {1}.{2}', parameters.build_target, parameters.action, parameters.action_target) }}" - script: C:\Cygwin\bin\bash --login -c "cd $(cygpath '%BUILD_SOURCESDIRECTORY%') && Tools/autotest/autotest.py ${{ format('build.{0} {1}.{2}', parameters.build_target, parameters.action, parameters.action_target) }}"
displayName: ${{ format('Run {0} autotest', parameters.name) }} displayName: ${{ format('Run {0} autotest', parameters.name) }}