Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
75 lines (60 sloc) 3.03 KB
# https://VookiImageViewer.cz
language: cpp
os:
- linux
- osx
sudo: false
dist: trusty
services:
- docker
compiler:
- clang
- gcc
env:
- QT=5.12 RELEASE=bionic DISTRO=ubuntu
- QT=latestDistroOfficial RELEASE=cosmic DISTRO=ubuntu
- QT=latestDistroOfficial RELEASE=debian-stable DISTRO=debian
- QT=latestDistroOfficial RELEASE=fedora-stable DISTRO=fedora
- BREW=
matrix:
exclude:
- os: linux
env: BREW=
- os: osx
env: QT=5.12 RELEASE=bionic DISTRO=ubuntu
- os: osx
env: QT=latestDistroOfficial RELEASE=cosmic DISTRO=ubuntu
- os: osx
env: QT=latestDistroOfficial RELEASE=debian-stable DISTRO=debian
- os: osx
env: QT=latestDistroOfficial RELEASE=fedora-stable DISTRO=fedora
install:
- '[ "$TRAVIS_OS_NAME" != linux ] || docker pull vookimedlo/"$DISTRO"-qt:"$QT"_"$CC"_"$RELEASE"'
- '[ "$TRAVIS_OS_NAME" != linux ] || docker run -d --name linux_docker --rm -ti vookimedlo/"$DISTRO"-qt:"$QT"_"$CC"_"$RELEASE" bash'
- '[ "$TRAVIS_OS_NAME" != linux ] || ([ "$DISTRO" != ubuntu ] && [ "$DISTRO" != debian ]) || docker exec linux_docker apt-get update -qq'
- '[ "$TRAVIS_OS_NAME" != linux ] || ([ "$DISTRO" != ubuntu ] && [ "$DISTRO" != debian ]) || docker exec linux_docker apt-get -y install libraw-dev'
- '[ "$TRAVIS_OS_NAME" != linux ] || [ "$DISTRO" != fedora ] || docker exec linux_docker yum -y install LibRaw LibRaw-devel'
- '[ "$TRAVIS_OS_NAME" != linux ] || docker exec linux_docker mkdir /root/sources'
- '[ "$TRAVIS_OS_NAME" != linux ] || docker cp -L ./ linux_docker:/root/sources'
- '[ "$TRAVIS_OS_NAME" != osx ] || brew update'
- '[ "$TRAVIS_OS_NAME" != osx ] || brew install qt$BREW'
- '[ "$TRAVIS_OS_NAME" != osx ] || brew link --force qt$BREW'
- '[ "$TRAVIS_OS_NAME" != osx ] || export CMAKE_PREFIX_PATH=/usr/local/opt/qt/'
before_script:
- '[ "$TRAVIS_OS_NAME" != osx ] || qmake -v'
- '[ "$TRAVIS_OS_NAME" != osx ] || cmake --version'
- '[ "$TRAVIS_OS_NAME" != osx ] || uname -a'
- '[ "$TRAVIS_OS_NAME" != linux ] || ([ "$DISTRO" != ubuntu ] && [ "$DISTRO" != debian ]) || docker exec linux_docker bash -c "source /etc/profile && qmake -v"'
- '[ "$TRAVIS_OS_NAME" != linux ] || [ "$DISTRO" != fedora ] || docker exec linux_docker bash -c "source /etc/profile && qmake-qt5 -v"'
- '[ "$TRAVIS_OS_NAME" != linux ] || docker exec linux_docker cmake --version'
- '[ "$TRAVIS_OS_NAME" != linux ] || docker exec linux_docker uname -a'
- '[ "$TRAVIS_OS_NAME" != linux ] || docker exec linux_docker cat /etc/issue.net'
script:
- '[ "$TRAVIS_OS_NAME" != osx ] || cd build/cmake/mac'
- '[ "$TRAVIS_OS_NAME" != osx ] || mkdir build'
- '[ "$TRAVIS_OS_NAME" != osx ] || cd build'
- '[ "$TRAVIS_OS_NAME" != osx ] || bash -c "source /etc/profile && cmake -DCMAKE_BUILD_TYPE=Release ../../"'
- '[ "$TRAVIS_OS_NAME" != osx ] || make'
- '[ "$TRAVIS_OS_NAME" != linux ] || docker exec linux_docker bash -c "source /etc/profile && cd /root/sources/build/cmake/unix && ./generate.sh && cd build && make"'
after_script:
- '[ "$TRAVIS_OS_NAME" != linux ] || docker stop linux_docker'