Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resync focal with 0.10 #33

Open
wants to merge 68 commits into
base: 0.10-travis-focal
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
672b27a
Try switching to g++-9
peternewman Jul 8, 2019
64fd790
Merge branch '0.10' into 0.10-g++-9
peternewman Jul 8, 2019
3bf9a72
Merge branch '0.10' into 0.10-g++-9
peternewman Aug 24, 2019
e36eb79
Fix a typo
peternewman Sep 22, 2019
d3446cd
Merge branch '0.10' into 0.10-g++-10
peternewman Sep 23, 2020
6956e4c
Switch to g++ 10
peternewman Sep 23, 2020
99c2438
Switch to bionic so g++-10 is available
peternewman Sep 23, 2020
1df1e41
Need bionic for the Doxygen and coverage builds too
peternewman Sep 23, 2020
ee2cf64
Correct the gcov build
peternewman Sep 24, 2020
42766ad
Fix the coverage build config
peternewman Sep 24, 2020
ca0c8b7
Merge branch '0.10' into 0.10-g++-10
peternewman Nov 1, 2020
cbbd5fb
Merge branch '0.10' into 0.10-g++-10
peternewman Dec 11, 2020
15efb01
Check if librt exists
peternewman Dec 20, 2020
46100dc
Switch to a better way of adding librt if required
peternewman Dec 20, 2020
2a1a7b3
Merge branch '0.10' into 0.10-lib-rt
peternewman Dec 21, 2020
05f3495
Merge pull request #1664 from peternewman/0.10-g++-10
peternewman Dec 21, 2020
8a9f32a
Merge branch '0.10' into 0.10-lib-rt
peternewman Dec 21, 2020
749590b
Merge pull request #1698 from peternewman/0.10-lib-rt
peternewman Dec 22, 2020
6c82068
New placeholder for NEWS
peternewman Nov 22, 2020
aa75e4a
Add a missing semicolon
peternewman Nov 23, 2020
00b7369
Add the count to the last line of the codespell info run
peternewman Dec 2, 2020
76099be
Merge branch '0.10' into 0.10-lib-rt
peternewman Dec 23, 2020
3ec5b63
Fix some cross-platform (BSD) compatibility of some configure tests
peternewman Dec 30, 2020
f9160bf
Work around missing __BIG_ENDIAN on some versions of NetBSD
peternewman Dec 30, 2020
ba3864d
Fix execinfo on NetBSD
peternewman Dec 30, 2020
9f23c71
Merge pull request #1704 from peternewman/0.10-c11-compat
peternewman Dec 31, 2020
30fe936
Extend configure so we switch to C++11 if necessary for Protobuf 3.6 …
peternewman Aug 12, 2018
915c178
Fix tools/rdm/TestStateTest.py failing on some systems
peternewman Dec 31, 2020
085a084
Merge branch '0.10' into 0.10-lib-rt
peternewman Dec 31, 2020
139438f
Merge pull request #1703 from peternewman/0.10-lib-rt
peternewman Jan 5, 2021
2cbc358
Clarify the usage of some of the different plugins
peternewman Jan 24, 2021
d2ca757
Merge pull request #1711 from peternewman/0.10-c11-compat
peternewman Feb 8, 2021
a5575bb
Cleanup
danielskeenan Feb 19, 2021
38d2aed
Update python/ola/ClientWrapperTest.py
danielskeenan Feb 19, 2021
448603a
Merge pull request #1716 from danielskeenan/#1714
peternewman Feb 19, 2021
0a47d3a
Switch to the new version of the flake8 action
peternewman Jun 2, 2021
b4d833a
Merge pull request #1724 from OpenLightingProject/peternewman-flake8-…
peternewman Jun 2, 2021
dcf8258
add vendor JMS
cmouttet Jun 19, 2021
03f013a
Merge branch '0.10' into JMS_USB2DMX
peternewman Jun 19, 2021
0945cdc
Migrate the badge to TravisCI.com
peternewman Jun 19, 2021
60df279
Only run Travis builds against the zero credit partner queue solution
peternewman Jun 20, 2021
4fb5303
Try forcing a traditional commit to kick off Travis
peternewman Jun 20, 2021
9344f97
Try doing nothing to get python3 working
peternewman Jun 29, 2021
fac4fbb
Add the missing packages for the spellintian runs
peternewman Jun 29, 2021
37a3085
Temporarily use an older flake8 on arm64 so it actually runs the Pyth…
peternewman Jun 29, 2021
54296e4
Revert "Temporarily use an older flake8 on arm64 so it actually runs …
peternewman Jun 29, 2021
0f2296d
Fix some typos
peternewman Jun 29, 2021
79af01a
Fix another typo
peternewman Jun 29, 2021
f98e33d
Update the flake8 task to Python 3, but allow it to fail for now.
peternewman Jun 29, 2021
3848069
Merge branch '0.10' into 0.10-lib-rt
peternewman Jun 29, 2021
62c0d2b
Merge pull request #1731 from peternewman/0.10-lib-rt
peternewman Jun 29, 2021
fc344fb
Use a recent clang if we're compiling with clang on arm64 as the late…
peternewman Jul 7, 2021
ad46a28
Point pip back to pip2 when not on python3
peternewman Jul 7, 2021
75fd883
Sudo the commands that need it
peternewman Jul 7, 2021
60f338d
Merge pull request #1734 from peternewman/0.10-lib-rt
peternewman Jul 7, 2021
2cb31c5
Merge branch '0.10' into JMS_USB2DMX
peternewman Jul 7, 2021
32a0497
Merge pull request #1729 from cmouttet/JMS_USB2DMX
peternewman Jul 7, 2021
e87f9f2
Correct a longstanding copy/paste error in a warning
peternewman Jul 12, 2021
8c0ce66
Update the documentation to match the limits allowed in #995
peternewman Jul 12, 2021
d0ca1f3
Merge branch '0.10' into 0.10-lib-rt
peternewman Jul 12, 2021
4194ecd
Merge pull request #1735 from peternewman/0.10-lib-rt
peternewman Jul 12, 2021
b5a0025
Fix a longstanding bug in GetMaxPacketSize RDM test around timeouts
peternewman Jul 14, 2021
470372e
Merge pull request #1736 from peternewman/0.10-lib-rt
peternewman Jul 14, 2021
e3321ba
Add more debugging so we can tell why setting the baud rate failed
peternewman Nov 13, 2021
5843c1d
Merge branch '0.10' into 0.10-uart-logging
peternewman Nov 13, 2021
33785bf
Merge pull request #1751 from peternewman/0.10-uart-logging
peternewman Nov 15, 2021
4936127
Merge branch '0.10-travis-focal' into 0.10-merge-into-focal
peternewman Dec 23, 2021
a7e73d0
Fix an incorrect architecture!
peternewman Dec 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/annotation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: 2.7
- name: Flake8 with annotations - Python 2
# Using the flake8 options in the .flake8 file
uses: peternewman/actions-flake8@python2
uses: TrueBrain/actions-flake8@main
flake8-annotation-python3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Flake8 with annotations - Python 3
# Using the flake8 options in the .flake8 file
uses: TrueBrain/actions-flake8@master
uses: TrueBrain/actions-flake8@main
with:
only_warn: 1
4 changes: 2 additions & 2 deletions .travis-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ elif [[ $TASK = 'codespell' ]]; then
# count the number of codespell errors
spellingerrors=$(zrun codespell --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignorelines --ignore-words .codespellignorewords $spellingfiles 2>&1 | wc -l)
if [[ $spellingerrors -ne 0 ]]; then
# print the output for info
zrun codespell --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignorelines --ignore-words .codespellignorewords $spellingfiles
# print the output for info, including the count
zrun codespell --count --check-filenames --check-hidden --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignorelines --ignore-words .codespellignorewords $spellingfiles
echo "Found $spellingerrors spelling errors via codespell"
exit 1;
else
Expand Down
170 changes: 106 additions & 64 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,12 @@ addons:
- libavahi-glib1
- libncurses5-dev
- libmicrohttpd-dev
packages: &core_build_clang_recent
- *core_build
- clang-10
packages: &core_build_gpp_latest
- *core_build
- g++-9
- g++-10
packages: &core_build_clang_latest
- *core_build
- clang-11
Expand Down Expand Up @@ -94,6 +97,7 @@ jobs:
include:
- os: linux
dist: focal
arch: arm64
env: TASK='doxygen'
addons:
apt:
Expand All @@ -106,6 +110,7 @@ jobs:
- ubuntu-toolchain-r-test
- os: linux
dist: focal
arch: arm64
env: TASK='lint'
addons:
apt:
Expand All @@ -114,6 +119,7 @@ jobs:
- *focal_build_extras_python2
- os: linux
dist: focal
arch: arm64
env: TASK='check-licences'
addons:
apt:
Expand All @@ -122,6 +128,7 @@ jobs:
- *focal_build_extras_python2
- os: linux
dist: focal
arch: arm64
env:
- TASK='codespell'
- PYTHON='python3'
Expand All @@ -133,58 +140,75 @@ jobs:
- moreutils
- os: linux
dist: focal
arch: arm64
env: TASK='jshint'
addons:
apt:
packages:
- os: linux
dist: focal
env: TASK='flake8'
arch: arm64
env:
- TASK='flake8'
addons:
apt:
packages:
- *base_build
- *focal_build_extras_python2
- os: linux
dist: focal
arch: amd64
arch: arm64
compiler: clang
env:
- TASK='compile'
- TASK='flake8'
- PYTHON='python3'
addons:
apt:
packages:
- *core_build_clang_latest
- *focal_build_extras_python3
sources:
- sourceline: "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main"
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
- sourceline: "ppa:ubuntu-toolchain-r/test"
- os: linux
dist: focal
arch: amd64
compiler: gcc
env: TASK='compile'
python: '2.7'
addons:
apt:
packages:
- *core_build_gpp_latest
- *focal_build_extras_python2
sources:
- ubuntu-toolchain-r-test
- *base_build
- *bionic_build_extras_python3
# Only run Travis builds against the zero credit partner queue solution
# - os: linux
# dist: bionic
# arch: amd64
# compiler: clang
# env:
# - TASK='compile'
# - PYTHON='python3'
# addons:
# apt:
# packages:
# - *core_build_clang_latest
# - *bionic_build_extras_python3
# sources:
# - sourceline: "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main"
# key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
# - sourceline: "ppa:ubuntu-toolchain-r/test"
# - os: linux
# dist: focal
# arch: amd64
# compiler: gcc
# env: TASK='compile'
# python: '2.7'
# addons:
# apt:
# packages:
# - *core_build_gpp_latest
# - *focal_build_extras_python2
# sources:
# - ubuntu-toolchain-r-test
- os: linux
dist: focal
arch: arm64
compiler: clang
env: TASK='compile'
python: '2.7'
env:
- TASK='compile'
- PYTHON='python3'
addons:
apt:
packages:
- *core_build
- *focal_build_extras_python2
- *core_build_clang_recent
- *focal_build_extras_python3
- os: linux
dist: focal
arch: arm64
Expand Down Expand Up @@ -262,40 +286,41 @@ jobs:
# - protobuf
# - libftdi0
# update: false
- os: osx
osx_image: xcode9.4
compiler: clang
env:
- TASK='compile'
- CPPUNIT='1.14'
- PROTOBUF='latest'
- LIBFTDI='1'
addons:
homebrew:
packages:
- *mac_core_build
- cppunit
- protobuf
- libftdi # install the latest cppunit, which needs C++11
update: false
- os: osx
osx_image: xcode9.4
compiler: gcc
env:
- TASK='compile'
- CPPUNIT='1.14'
- PROTOBUF='latest'
- LIBFTDI='1'
addons:
homebrew:
packages:
- *mac_core_build
- cppunit
- protobuf
- libftdi # install the latest cppunit, which needs C++11
update: false
# - os: osx
# osx_image: xcode9.4
# compiler: clang
# env:
# - TASK='compile'
# - CPPUNIT='1.14'
# - PROTOBUF='latest'
# - LIBFTDI='1'
# addons:
# homebrew:
# packages:
# - *mac_core_build
# - cppunit
# - protobuf
# - libftdi # install the latest cppunit, which needs C++11
# update: false
# - os: osx
# osx_image: xcode9.4
# compiler: gcc
# env:
# - TASK='compile'
# - CPPUNIT='1.14'
# - PROTOBUF='latest'
# - LIBFTDI='1'
# addons:
# homebrew:
# packages:
# - *mac_core_build
# - cppunit
# - protobuf
# - libftdi # install the latest cppunit, which needs C++11
# update: false
- os: linux
dist: xenial
dist: bionic
arch: arm64
compiler: gcc
env: TASK='coverage'
addons:
Expand All @@ -306,6 +331,7 @@ jobs:
- sourceline: "ppa:ubuntu-toolchain-r/test"
- os: linux
dist: xenial
arch: arm64
compiler: gcc
env: TASK='coverity'
addons:
Expand All @@ -318,20 +344,24 @@ jobs:
- sourceline: "ppa:ubuntu-toolchain-r/test"
- os: linux
dist: focal
arch: arm64
env: TASK='spellintian'
addons:
apt:
packages:
- *core_build
- *bionic_build_extras_python2
- lintian
- moreutils
- os: linux
dist: focal
arch: arm64
env: TASK='spellintian-duplicates'
addons:
apt:
packages:
- *core_build
- *bionic_build_extras_python2
- lintian
- moreutils
allow_failures:
Expand Down Expand Up @@ -394,18 +424,28 @@ jobs:
- PROTOBUF='latest'
- LIBFTDI='1'
- os: linux
dist: xenial
dist: bionic
arch: arm64
env:
- TASK='flake8'
- PYTHON='python3'
- os: linux
dist: bionic
arch: arm64
compiler: gcc
env: TASK='coverage'
- os: linux
dist: xenial
arch: arm64
compiler: gcc
env: TASK='coverity'
- os: linux
dist: focal
arch: arm64
env: TASK='spellintian'
- os: linux
dist: focal
arch: arm64
env: TASK='spellintian-duplicates'

env:
Expand Down Expand Up @@ -445,7 +485,7 @@ before_cache:

before_install:
#Switch to python 3 where required (focal is Python 3 by default)
- if [ "$TRAVIS_DIST" != "focal" -a "$PYTHON" == "python3" ]; then pyenv global 3.9.0 || pyenv versions && false; fi
- if [ "$TRAVIS_DIST" != "focal" -a "$PYTHON" == "python3" -a "$TRAVIS_CPU_ARCH" != "arm64" ]; then pyenv global 3.9.0 || pyenv versions && false; fi
#Install pip (2) on focal
- if [ "$TRAVIS_DIST" == "focal" -a "$PYTHON" != "python3" -a -x /usr/bin/python2 ]; then curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && sudo python2 get-pip.py && rm get-pip.py; fi
#Fix permissions for unbound (and possibly others)
Expand All @@ -467,10 +507,12 @@ before_install:
#- if [ "$TRAVIS_OS_NAME" == "osx" -a "$PROTOBUF" != "latest" ]; then brew link -f https://raw.githubusercontent.com/Homebrew/homebrew-core/024ca9a4730a1f26ceede43485fbf62ef6f41179%5E/Formula/[email protected]; export PKG_CONFIG_PATH=/usr/local/opt/[email protected]/lib/pkgconfig; brew install --build-from-source --ignore-dependencies --env=std protobuf-c; fi # While protobuf is not on the latest release
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mkdir -p ${HOME}/Library/Python/2.7/lib/python/site-packages; echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> ${HOME}/Library/Python/2.7/lib/python/site-packages/homebrew.pth; fi
#Coverity doesn't work with g++ 5 or 6, so only upgrade to g++ 4.9 for that
- if [ "$TRAVIS_OS_NAME" == "linux" -a \( "$TASK" = "compile" -o "$TASK" = "coverage" -o "$TASK" = "doxygen" \) -a "$CXX" = "g++" ]; then export CXX="ccache g++-9" CC="ccache gcc-9"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" -a \( "$TASK" = "compile" -o "$TASK" = "coverage" -o "$TASK" = "doxygen" \) -a "$CXX" = "g++" ]; then export CXX="ccache g++-10" CC="ccache gcc-10"; fi
- if [ "$TASK" = "coverity" -a "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
#Use the latest clang if we're compiling with clang, except on arm64 where it's not available
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CXX" = "clang++" -a "$TRAVIS_CPU_ARCH" != "arm64" ]; then export CXX="clang++-11" CC="clang-11"; fi
#Use a recent clang if we're compiling with clang on arm64 as the latest isn't available
- if [ "$TRAVIS_OS_NAME" == "linux" -a "$CXX" = "clang++" -a "$TRAVIS_CPU_ARCH" == "arm64" ]; then export CXX="clang++-10" CC="clang-10"; fi
#Report the compiler version
- $CXX --version

Expand Down Expand Up @@ -499,7 +541,7 @@ after_failure:
- if [ -f ${TRAVIS_BUILD_DIR}/ola-*/_build/sub/config.log ]; then cat ${TRAVIS_BUILD_DIR}/ola-*/_build/sub/config.log; fi

after_success:
- if [ "$TASK" = "coverage" ]; then coveralls --gcov /usr/bin/gcov-9 -b . -E '.*Test\.cpp$' -E '.*\.pb\.cc$' -E '.*\.pb\.cpp$' -E '.*\.pb\.h$' -E '.*\.yy\.cpp$' -E '.*\.tab\.cpp$' -E '.*\.tab\.h$' -E '.*/doxygen/examples.*$' --gcov-options '\-lp' > /dev/null; fi
- if [ "$TASK" = "coverage" ]; then coveralls --gcov /usr/bin/gcov-10 -b . -E '.*Test\.cpp$' -E '.*\.pb\.cc$' -E '.*\.pb\.cpp$' -E '.*\.pb\.h$' -E '.*\.yy\.cpp$' -E '.*\.tab\.cpp$' -E '.*\.tab\.h$' -E '.*/doxygen/examples.*$' --gcov-options '\-lp' > /dev/null; fi

after_script:
- if [ "$TASK" = "coverity" ]; then tail -n 10000 ${TRAVIS_BUILD_DIR}/cov-int/build-log.txt; cat ${TRAVIS_BUILD_DIR}/cov-int/scm_log.txt; fi
Expand Down
16 changes: 16 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
x/y/2020 ola-0.10.9
Features:
*

API:
*

RDM Tests:
*

Bugs:
*

Internal:
*

22/11/2020 ola-0.10.8
Features:
* Support DragonFly BSD
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[www.openlighting.org/ola](https://www.openlighting.org/ola)

[![Build Status](https://travis-ci.org/OpenLightingProject/ola.svg?branch=master)](https://travis-ci.org/OpenLightingProject/ola) [![Coverity Scan Status](https://scan.coverity.com/projects/3514/badge.svg)](https://scan.coverity.com/projects/3514) [![Coverage Status](https://coveralls.io/repos/OpenLightingProject/ola/badge.svg?branch=master)](https://coveralls.io/r/OpenLightingProject/ola?branch=master)
[![Build Status](https://travis-ci.com/github/OpenLightingProject/ola.svg?branch=master)](https://travis-ci.com/github/OpenLightingProject/ola) [![Coverity Scan Status](https://scan.coverity.com/projects/3514/badge.svg)](https://scan.coverity.com/projects/3514) [![Coverage Status](https://coveralls.io/repos/OpenLightingProject/ola/badge.svg?branch=master)](https://coveralls.io/r/OpenLightingProject/ola?branch=master)

The Open Lighting Architecture (OLA) is a framework for controlling
entertainment lighting equipment. Within the entertainment lighting industry,
Expand Down
2 changes: 1 addition & 1 deletion common/base/Init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ void ClockInit() {
TimeStamp now_monotonic;
TimeStamp now_realtime;
#ifndef CLOCK_MONOTONIC
OLA_DEBUG << "Monotonic clock unavailable. Falling back to real time clock."
OLA_DEBUG << "Monotonic clock unavailable. Falling back to real time clock.";
#endif
clock.CurrentMonotonicTime(&now_monotonic);
clock.CurrentRealTime(&now_realtime);
Expand Down
Loading