Use Python3 for mqttsas.py

This commit is contained in:
Ian Craggs 2018-05-31 23:19:17 +01:00
parent a892672057
commit f5fc716aba
2 changed files with 4 additions and 5 deletions

View File

@ -5,12 +5,11 @@ image:
configuration: Debug
install:
- cmd: openssl version
- cmd: python --version
- cmd: netsh advfirewall firewall add rule name="Python 2.7" dir=in action=allow program="C:\Python27\python.exe" enable=yes
- cmd: C:\Python36\python --version
- cmd: netsh advfirewall firewall add rule name="Python 3.6" dir=in action=allow program="C:\Python36\python.exe" enable=yes
- cmd: netsh advfirewall firewall add rule name="Open Port 1883" dir=in action=allow protocol=TCP localport=1883
- cmd: netsh advfirewall set allprofiles state off
- ps: Start-Process python -ArgumentList 'test\mqttsas.py'
- cmd: C:\Python36\python --version
- ps: Start-Process C:\Python36\python -ArgumentList 'test\mqttsas.py'
- cmd: git clone https://github.com/eclipse/paho.mqtt.testing.git
- cmd: cd paho.mqtt.testing\interoperability
- ps: Start-Process C:\Python36\python -ArgumentList 'startbroker.py -c localhost_testing.conf'

View File

@ -8,7 +8,7 @@ cd build.paho
echo "travis build dir $TRAVIS_BUILD_DIR pwd $PWD"
cmake -DCMAKE_BUILD_TYPE=Debug -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_DOCUMENTATION=FALSE -DPAHO_BUILD_SAMPLES=TRUE ..
make
python ../test/mqttsas.py &
python3 ../test/mqttsas.py &
ctest -VV --timeout 600
cpack --verbose
kill %1