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
|
||||
|
||||
sudo: false
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- cmake
|
||||
- zlib1g-dev
|
||||
- libssh-dev
|
||||
- libssh
|
||||
- libcurl4-openssl-dev
|
||||
- gettext
|
||||
sources:
|
||||
- kalakris-cmake
|
||||
sudo: required
|
||||
dist: trusty
|
||||
|
||||
compiler:
|
||||
- gcc
|
||||
- clang
|
||||
|
||||
before_install:
|
||||
- echo $LANG
|
||||
- echo $LC_ALL
|
||||
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install libssh curl; fi
|
||||
- rvm use $RVM --install --binary --fuzzy
|
||||
- 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
|
||||
env:
|
||||
- CMAKE_OPTIONS="" # Default
|
||||
- CMAKE_OPTIONS="-DEXIV2_ENABLE_VIDEO=ON -DEXIV2_ENABLE_WEBREADY=ON" # All enabled
|
||||
- CMAKE_OPTIONS="-DEXIV2_ENABLE_XMP=OFF -DEXIV2_ENABLE_NLS=OFF -DEXIV2_ENABLE_LENSDATA=OFF" # All disabled
|
||||
- CMAKE_OPTIONS="-DEXIV2_ENABLE_WEBREADY=ON -DEXIV2_ENABLE_CURL=OFF -DEXIV2_ENABLE_SSH=OFF" # WebReady without SSH nor CURL
|
||||
|
||||
os:
|
||||
- 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