travis.ci: improve build options, add osx builds (#70)

* cleanup: remove ambiled device

as written at the forum this is no longer supported. All people should move to adalight. They just need to flash a new sketch.

* fix typo

* travis.ci

* travis: move to ubuntu 14.04

* script try

* add serialport

* update .json files

* .

* .

* .

* update travis

* fix

* typo

* fix

* .

* disable v4l2 on mac

* disable email notification

* update osx

* maybe fix

* .

* disable osx and rm v4l2
This commit is contained in:
brindosch 2016-06-28 21:53:08 +02:00 committed by GitHub
parent 1ccd7b41f7
commit 25f8e47bb6
3 changed files with 39 additions and 5 deletions

View File

@ -1,7 +1,16 @@
notifications:
email: false
language: cpp
sudo: required
dist: trusty
matrix:
include:
- os: linux
dist: trusty
sudo: required
# - os: osx
# osx_image: xcode7.3
before_install:
- sudo apt-get -qq update
- sudo apt-get install -qq -y qtbase5-dev libqt5serialport5-dev libusb-1.0-0-dev python-dev libxrender-dev libavahi-core-dev libavahi-compat-libdnssd-dev
script: mkdir build && cd build && cmake -DPLATFORM=x86 -DCMAKE_BUILD_TYPE=Release .. && make -j 2
- chmod +x ./.travis/travis_install.sh
- ./.travis/travis_install.sh
script:
- chmod +x ./.travis/travis_build.sh
- ./.travis/travis_build.sh

10
.travis/travis_build.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# compile hyperion on osx
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=ON .. && make -j$(nproc) package
fi
# compile hyperion on linux
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
mkdir build && cd build && cmake -DPLATFORM=x86 -DCMAKE_BUILD_TYPE=Release -DENABLE_AMLOGIC=ON -DENABLE_TESTS=ON -DENABLE_SPIDEV=ON .. && make -j$(nproc) package
fi

15
.travis/travis_install.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# install osx deps for hyperion compile
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
echo "Install OSX deps"
brew update
brew install qt5
brew install libusb
fi
# install linux deps for hyperion compile
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
echo "Install linux deps"
sudo apt-get -qq update ; sudo apt-get install -qq -y qtbase5-dev libqt5serialport5-dev libusb-1.0-0-dev python-dev libxrender-dev libavahi-core-dev libavahi-compat-libdnssd-dev
fi