Skip to content

Commit

Permalink
Feature: Travis CI Support
Browse files Browse the repository at this point in the history
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
Morheit authored and alexmucde committed Mar 31, 2020
1 parent f934359 commit 455c467
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .ci/travis/build.sh
@@ -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
8 changes: 8 additions & 0 deletions .ci/travis/install.sh
@@ -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
31 changes: 31 additions & 0 deletions .travis.yml
@@ -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

0 comments on commit 455c467

Please sign in to comment.