Add travis support for Linux:
- Installing requirements with install script - Add missing include(checkIncludeFile) cmake command - Configuration matrix to compile the project with different optionsv0.27.3
parent
bfff891c4c
commit
1c9a8a18e4
@ -1,40 +1,20 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
|
|
||||||
sudo: false
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- cmake
|
|
||||||
- zlib1g-dev
|
|
||||||
- libssh-dev
|
|
||||||
- libssh
|
|
||||||
- libcurl4-openssl-dev
|
|
||||||
- gettext
|
|
||||||
sources:
|
|
||||||
- kalakris-cmake
|
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
|
||||||
before_install:
|
env:
|
||||||
- echo $LANG
|
- CMAKE_OPTIONS="" # Default
|
||||||
- echo $LC_ALL
|
- CMAKE_OPTIONS="-DEXIV2_ENABLE_VIDEO=ON -DEXIV2_ENABLE_WEBREADY=ON" # All enabled
|
||||||
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install libssh curl; fi
|
- CMAKE_OPTIONS="-DEXIV2_ENABLE_XMP=OFF -DEXIV2_ENABLE_NLS=OFF -DEXIV2_ENABLE_LENSDATA=OFF" # All disabled
|
||||||
- rvm use $RVM --install --binary --fuzzy
|
- CMAKE_OPTIONS="-DEXIV2_ENABLE_WEBREADY=ON -DEXIV2_ENABLE_CURL=OFF -DEXIV2_ENABLE_SSH=OFF" # WebReady without SSH nor CURL
|
||||||
- gem update --system
|
|
||||||
# - gem --version
|
|
||||||
|
|
||||||
script:
|
|
||||||
- cmake -DCMAKE_INSTALL_PREFIX=..\dist -EXIV2_ENABLE_NLS=ON -DEXIV2_ENABLE_CURL=OFF -DEXIV2_ENABLE_SSH=OFF .
|
|
||||||
- cmake --build . && cmake --build . --target install
|
|
||||||
- cmake -DCMAKE_INSTALL_PREFIX=..\dist2 -EXIV2_ENABLE_NLS=ON -DEXIV2_ENABLE_CURL=ON -DEXIV2_ENABLE_SSH=ON -DEXIV2_ENABLE_WEBREADY=ON .
|
|
||||||
- cmake --build . && cmake --build . --target install
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
email: false
|
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
- osx
|
|
||||||
|
install: ./.travis/install.sh
|
||||||
|
script: ./.travis/run.sh
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
if [[ "$(uname -s)" == 'Linux' ]]; then
|
||||||
|
sudo apt-get install cmake zlib1g-dev libssh-dev libcurl4-openssl-dev gettext libexpat1-dev
|
||||||
|
fi
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
mkdir build && cd build
|
||||||
|
cmake ${CMAKE_OPTIONS} ..
|
||||||
|
make -j
|
Loading…
Reference in New Issue