From 7dd2a3c83c61c0721f87df426e1b1414cfd03ab7 Mon Sep 17 00:00:00 2001 From: Luca Beldi Date: Thu, 17 Jan 2019 09:00:41 +0000 Subject: [PATCH] added travis configuration --- .appveyor.yml | 1 + .travis.yml | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 .travis.yml diff --git a/.appveyor.yml b/.appveyor.yml index 09573f3..35ef837 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -152,6 +152,7 @@ build_script: - if %use_cmake%==false if %use_static%==true qmake "CONFIG+=adsBuildStatic" - if %use_cmake%==false if %use_static%==false qmake - if %use_cmake%==false %MAKEENGINE% debug +- if %use_cmake%==false %MAKEENGINE% install - if %use_cmake%==false %MAKEENGINE% release - if %use_cmake%==false %MAKEENGINE% install diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..76f1c1f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,95 @@ +language: cpp +# gcc is clang on mac +compiler: gcc + +git: + depth: 1 + +matrix: + fast_finish: true + include: + - name: Ubuntu CMake dll + os: linux + dist: xenial + group: stable + cache: ccache + addons: + apt: + packages: + - qt5-default + - qttools5-dev + - qttools5-dev-tools + script: + - mkdir .\build + - cd build + - cmake --version + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_EXAMPLES=ON -DBUILD_STATIC=OFF -DCMAKE_INSTALL_PREFIX="./installed" ../ + - cmake --build . + - cmake --build . --target install + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_EXAMPLES=ON -DBUILD_STATIC=OFF -DCMAKE_INSTALL_PREFIX="./installed" ../ + - cmake --build . + - cmake --build . --target install + - name: Ubuntu CMake static + os: linux + dist: xenial + group: stable + cache: ccache + addons: + apt: + packages: + - qt5-default + - qttools5-dev + - qttools5-dev-tools + script: + - mkdir .\build + - cd build + - cmake --version + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_EXAMPLES=ON -DBUILD_STATIC=ON -DCMAKE_INSTALL_PREFIX="./installed" ../ + - cmake --build . + - cmake --build . --target install + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_EXAMPLES=ON -DBUILD_STATIC=ON -DCMAKE_INSTALL_PREFIX="./installed" ../ + - cmake --build . + - cmake --build . --target install + + - name: macOS CMake dll + os: osx + osx_image: xcode10.1 + cache: ccache + addons: + homebrew: + packages: + - ccache + - qt + script: + - mkdir .\build + - cd build + - cmake --version + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_EXAMPLES=ON -DBUILD_STATIC=OFF -DCMAKE_INSTALL_PREFIX="./installed" ../ + - cmake --build . + - cmake --build . --target install + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_EXAMPLES=ON -DBUILD_STATIC=OFF -DCMAKE_INSTALL_PREFIX="./installed" ../ + - cmake --build . + - cmake --build . --target install + - name: macOS CMake static + os: osx + osx_image: xcode10.1 + cache: ccache + addons: + homebrew: + packages: + - ccache + - qt + script: + - mkdir .\build + - cd build + - cmake --version + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=DEBUG -DBUILD_EXAMPLES=ON -DBUILD_STATIC=ON -DCMAKE_INSTALL_PREFIX="./installed" ../ + - cmake --build . + - cmake --build . --target install + - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RELEASE -DBUILD_EXAMPLES=ON -DBUILD_STATIC=ON -DCMAKE_INSTALL_PREFIX="./installed" ../ + - cmake --build . + - cmake --build . --target install + +notifications: + email: false +