diff --git a/.travis.yml b/.travis.yml index f9c42291..c6f1a6f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -sudo: true +sudo: required language: c compiler: @@ -9,9 +9,18 @@ os: - linux - osx -sudo: required +matrix: + exclude: + - compiler: gcc + os: osx + - compiler: clang + os: linux before_install: + - openssl aes-256-cbc -K $encrypted_dcd2b299f7c9_key -iv $encrypted_dcd2b299f7c9_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d + - eval "$(ssh-agent -s)" + - chmod 600 /tmp/deploy_rsa + - ssh-add /tmp/deploy_rsa - ./travis-install.sh env: @@ -20,7 +29,6 @@ env: # via the "travis encrypt" command using the project repo's public key - secure: "Ro53zVdGCjCQx9U4wvD9GBwB346tIQ7y1MWOAe1QrFWlmoQLC8KUeddQkc+27pdrOG9Fm9QQcI82EDlh0bfRBy1ITfWSVVZVfbNLv9sBWesND1F9YlnFpn/fag2OE+ULPSEJVJMxZoqiR9yiYWO3pTWue4YjCSuFAjpQNO6VnV3HiQJRG1jeaylx0QVLQWKAL/qkRbuqG9o4xpS1Kebaj86+q9UTHcL1a+Aj53u+Ajqnc9ZbUB/yBrfHyufTKpAD8Ef/FEIWXg2svtiWVEwEsPtdTn5P7AefJ2FNEyT4uMKIEBzWIPeWvUZLFF6U7QA07+uYDE0Ir4voPptBUlIYqQz1CUz9XCOPmM/N+GgqpyNyUjpMb4CM1b+iwBwcsHc0Z1JFcPz65ZMSt1D/WeUfQlaB/KxQBpz4lD2mxEmAuBIoGNrAG+FRULoY+xQSAf7V0W8am6QbHNnXif30mdkF3lgAhaAOwWO03JD7ctEJXqzRbMK8HrBkrgWfHsRRLFT50m8CrNLFz+3lCYuPHge2gHUMDfIHMxd4N9f2dlfV9GJkHQOQYwFfP5L2Y5Xq9KTnZX+bsglDC2WcOJu2F8h1LxTMV5Kku8zl1RZlEAt8Qa9EtCMczA3sL4NfGxazO22WpyOvHdwb26mhdJTgquI5oZsl71zcIf+WLGfgUAEq4/k=" - script: - if [[ "$COVERITY_SCAN_BRANCH" != 1 ]]; then ./travis-build.sh; fi @@ -33,7 +41,6 @@ addons: build_command_prepend: "make clean" build_command: "make -j 4" branch_pattern: coverity-.* -addons: apt: sources: - george-edison55-precise-backports # cmake 3.2.3 / doxygen 1.8.3 @@ -44,4 +51,6 @@ addons: - mosquitto - doxygen - +after_success: + - ls -l build.paho/*.tar.gz + - scp -o StrictHostKeyChecking=no build.paho/*.tar.gz icraggs@build.eclipse.org:../../../../shared/technology/paho/C/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ce36492..be8d2e86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ #******************************************************************************* -# Copyright (c) 2015, 2017 logi.cals GmbH and others +# Copyright (c) 2015, 2018 logi.cals GmbH and others # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 @@ -18,7 +18,7 @@ # Note: on OS X you should install XCode and the associated command-line tools CMAKE_MINIMUM_REQUIRED(VERSION 2.8.4) -PROJECT("paho" C) +PROJECT("Eclipse Paho C" C) MESSAGE(STATUS "CMake version: " ${CMAKE_VERSION}) MESSAGE(STATUS "CMake system name: " ${CMAKE_SYSTEM_NAME}) @@ -28,7 +28,7 @@ SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules") ## build settings SET(PAHO_VERSION_MAJOR 1) SET(PAHO_VERSION_MINOR 2) -SET(PAHO_VERSION_PATCH 0) +SET(PAHO_VERSION_PATCH 1) SET(CLIENT_VERSION ${PAHO_VERSION_MAJOR}.${PAHO_VERSION_MINOR}.${PAHO_VERSION_PATCH}) INCLUDE(GNUInstallDirs) @@ -60,6 +60,11 @@ IF(PAHO_BUILD_DOCUMENTATION) ENDIF() ### packaging settings +SET(CPACK_PACKAGE_VENDOR "Eclipse Paho") +SET(CPACK_PACKAGE_NAME "Eclipse-Paho-MQTT-C") +INSTALL(FILES CONTRIBUTING.md epl-v10 edl-v10 README.md notice.html DESTINATION .) +FILE(GLOB samples "src/samples/*.c") +INSTALL(FILES ${samples} DESTINATION samples) IF (WIN32) SET(CPACK_GENERATOR "ZIP") ELSEIF(PAHO_BUILD_DEB_PACKAGE) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..46451852 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1 @@ +Please see the [Eclipse Community Code of Conduct](https://eclipse.org/org/documents/Community_Code_of_Conduct.php) diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..6a94e274 --- /dev/null +++ b/LICENSE @@ -0,0 +1,11 @@ +This program and the accompanying materials +are made available under the terms of the Eclipse Public License v1.0 +and Eclipse Distribution License v1.0 which accompany this distribution. + +The Eclipse Public License is available at + http://www.eclipse.org/legal/epl-v10.html +and the Eclipse Distribution License is available at + http://www.eclipse.org/org/documents/edl-v10.php. + +For an explanation of what dual-licensing means to you, see: +https://www.eclipse.org/legal/eplfaq.php#DUALLIC diff --git a/Makefile b/Makefile index af87dbc5..fc401239 100755 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ SHELL = /bin/sh .PHONY: clean, mkdir, install, uninstall, html ifndef release.version - release.version = 1.2.0 + release.version = 1.2.1 endif # determine current platform diff --git a/appveyor.yml b/appveyor.yml index ee21e34f..b12a15bd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,7 +9,7 @@ install: - cmd: netsh advfirewall firewall add rule name="Python 2.7" dir=in action=allow program="C:\Python27\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\mqttsas2.py' + - ps: Start-Process python -ArgumentList 'test\mqttsas.py' - cmd: C:\Python36\python --version - cmd: git clone https://github.com/eclipse/paho.mqtt.testing.git - cmd: cd paho.mqtt.testing\interoperability diff --git a/build.xml b/build.xml index 07a9ec38..da00fe1a 100644 --- a/build.xml +++ b/build.xml @@ -1,5 +1,5 @@