Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Travis CI support Build Matrix includes the following systems: - Ubuntu 16.04 (Xenial) - Ubuntu 18.04 (Bionic) - macOS 10.13 (High Sierra) - macOS 10.14 (Mojave) During each job, the CMake and QMake builds are performed Signed-off-by: Yaroslav Stanislavyk <stl.ros@outlook.com>
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$(uname -s)" == 'Darwin' ]]; then | ||
readonly Qt5_DIR="/usr/local/opt/qt" | ||
fi | ||
|
||
mkdir build | ||
cd build | ||
|
||
# Building with CMake | ||
cmake ../ | ||
make | ||
|
||
# Cleanup | ||
rm -rf * | ||
|
||
# Building with QMake | ||
qmake ../BuildDltViewer.pro | ||
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$(uname -s)" == 'Darwin' ]]; then | ||
brew link qt --force | ||
else | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential qt5-default libqt5serialport5-dev | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
language: cpp | ||
|
||
linux: &linux | ||
os: linux | ||
services: | ||
- docker | ||
|
||
macos_high_sierra: &macos_high_sierra | ||
os: osx | ||
osx_image: xcode10.1 | ||
|
||
macos_mojave: &macos_mojave | ||
os: osx | ||
osx_image: xcode11.3.1 | ||
|
||
jobs: | ||
include: | ||
- <<: *linux | ||
dist: xenial | ||
- <<: *linux | ||
dist: bionic | ||
- <<: *macos_high_sierra | ||
- <<: *macos_mojave | ||
|
||
install: | ||
- chmod +x .ci/travis/install.sh | ||
- ./.ci/travis/install.sh | ||
|
||
script: | ||
- chmod +x .ci/travis/build.sh | ||
- ./.ci/travis/build.sh |