Improve testing with the new test plan with travis's macOS worker.
Now there are three test plans:
Linux, Bionic
macOS, Travis OS Image xcode11.3
Docker, for onboard software
The new Travis configuration in this PR does not use Travis's build matrix, because the above test plans differ very much. After moving the onboard software to its dedicated repo, attempts to modify the test plan to use build matrix could be made.
The macOS environment on Travis takes longer to boot and initialize. Therefore, CI build time now finishes about 6-7 minutes, which was 3-4 minutes from before. However, since the changes is mostly due to pre-testing, the duration difference between Linux and macOS test plans should remain relatively stable (~3 minutes) with future and new tests.
About the coverage drop: it is unclear from Coveralls report. However, this PR does not remove tests, introduce large code bodies, nor making any existing lines not covered in tests.
Types of Changes
Put an x in the boxes that apply
[x] Feature (non-breaking change which adds functionality)
[ ] Bug Fix (non-breaking change that fixes an issue)
[ ] Breaking Change (feature/fix that causes existing features to not work as expected)
[ ] Documentation
Checklist
[x] I have read the [contribute]contributing doc
[x] Classes, scripts, and environment variables follow existing naming convention
[x] Lint and Unit tests pass locally
[x] New features on hardware have been tested on a local Raspberry Pi
[x] Mention new programs/binaries if any must be installed along with this change
[x] Mention new environment variables if any have been added to hardware/env file
[x] Please make sure test coverage does not drop. If it does, please explain the reasons.
[x] Any new required python modules are added to the requirements.txt
Title
Add support for osx in Travis CI. Closes #646.
Description
Improve testing with the new test plan with travis's macOS worker.
Now there are three test plans:
xcode11.3
The new Travis configuration in this PR does not use Travis's build matrix, because the above test plans differ very much. After moving the onboard software to its dedicated repo, attempts to modify the test plan to use build matrix could be made.
The macOS environment on Travis takes longer to boot and initialize. Therefore, CI build time now finishes about 6-7 minutes, which was 3-4 minutes from before. However, since the changes is mostly due to pre-testing, the duration difference between Linux and macOS test plans should remain relatively stable (~3 minutes) with future and new tests.
About the coverage drop: it is unclear from Coveralls report. However, this PR does not remove tests, introduce large code bodies, nor making any existing lines not covered in tests.
Types of Changes
Put an
x
in the boxes that applyChecklist