2022-04-17 05:31:00 +08:00
|
|
|
version: 0.{build}-{branch}
|
2022-04-17 05:23:18 +08:00
|
|
|
|
|
|
|
# don't build tags
|
|
|
|
skip_tags: true
|
|
|
|
|
2022-04-18 20:01:17 +08:00
|
|
|
# exclude gh-pages branch
|
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- gh-pages
|
|
|
|
|
|
|
|
shallow_clone: true
|
2022-04-17 05:23:18 +08:00
|
|
|
|
|
|
|
# build options
|
|
|
|
build:
|
|
|
|
parallel: true
|
|
|
|
verbosity: detailed
|
|
|
|
|
|
|
|
|
|
|
|
#configurations to build
|
|
|
|
configuration:
|
2022-04-17 05:51:05 +08:00
|
|
|
- Release
|
2022-04-17 05:23:18 +08:00
|
|
|
# - debug
|
2018-12-20 01:58:18 +08:00
|
|
|
|
|
|
|
|
2022-04-17 05:23:18 +08:00
|
|
|
# define build matrix
|
2018-12-20 01:58:18 +08:00
|
|
|
environment:
|
|
|
|
global:
|
|
|
|
JOMDIR: C:\Qt\Tools\QtCreator\bin
|
2019-06-21 21:46:53 +08:00
|
|
|
VSVER: 0
|
2022-04-17 19:49:29 +08:00
|
|
|
CMAKE_BUILDFLAGS:
|
2022-04-17 05:23:18 +08:00
|
|
|
USE_CMAKE: true
|
|
|
|
|
2018-12-20 01:58:18 +08:00
|
|
|
matrix:
|
2022-04-17 18:57:17 +08:00
|
|
|
- QTABI: msvc2019_64
|
|
|
|
COMPILER: MSVC
|
2022-04-17 05:23:18 +08:00
|
|
|
QTVER: 5.15
|
2022-04-17 19:49:29 +08:00
|
|
|
CMAKE_GENERATOR: "Visual Studio 16 2019"
|
|
|
|
CMAKE_BUILDFLAGS: /verbosity:minimal /maxcpucount
|
2022-04-17 05:23:18 +08:00
|
|
|
|
2022-04-22 21:24:54 +08:00
|
|
|
- QTABI: msvc2019_64
|
|
|
|
COMPILER: MSVC
|
2022-07-06 13:21:23 +08:00
|
|
|
QTVER: 6.3
|
2022-04-22 21:24:54 +08:00
|
|
|
CMAKE_GENERATOR: "Visual Studio 16 2019"
|
|
|
|
CMAKE_BUILDFLAGS: /verbosity:minimal /maxcpucount
|
|
|
|
|
2022-04-17 19:49:29 +08:00
|
|
|
# - QTABI: mingw81_64
|
|
|
|
# COMPILER: MinGW
|
|
|
|
# MINGWDIR: C:\Qt\Tools\mingw810_64
|
|
|
|
# QTVER: 5.15
|
|
|
|
# CMAKE_GENERATOR: "MinGW Makefiles"
|
|
|
|
#
|
2022-04-17 18:57:17 +08:00
|
|
|
- QTABI: gcc_64
|
|
|
|
COMPILER: GCC
|
2022-04-17 05:23:18 +08:00
|
|
|
QTVER: 5.15
|
|
|
|
CMAKE_GENERATOR: "Unix Makefiles"
|
2022-04-22 21:24:54 +08:00
|
|
|
|
|
|
|
- QTABI: gcc_64
|
|
|
|
COMPILER: GCC
|
|
|
|
QTVER: 6.2
|
|
|
|
CMAKE_GENERATOR: "Unix Makefiles"
|
2022-07-19 00:14:00 +08:00
|
|
|
|
|
|
|
- QTABI: macos
|
|
|
|
COMPILER: CLANG
|
|
|
|
QTVER: 6.2
|
|
|
|
CMAKE_GENERATOR: "Unix Makefiles"
|
2022-04-17 05:31:00 +08:00
|
|
|
|
2022-04-17 18:57:17 +08:00
|
|
|
image:
|
|
|
|
# AppVeyor builds are ordered by the image list:
|
2022-07-19 00:14:00 +08:00
|
|
|
- macos-monterey
|
2022-07-19 05:01:18 +08:00
|
|
|
- Ubuntu2004
|
|
|
|
- Visual Studio 2019
|
2022-04-17 18:57:17 +08:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
exclude:
|
|
|
|
# Exclude invalid options
|
|
|
|
- image: Visual Studio 2019
|
|
|
|
QTABI: gcc_64
|
|
|
|
- image: Visual Studio 2019
|
|
|
|
QTABI: mingw53_32
|
|
|
|
- image: Visual Studio 2019
|
|
|
|
QTABI: msvc2015
|
2022-07-19 00:14:00 +08:00
|
|
|
- image: Visual Studio 2019
|
|
|
|
QTABI: macos
|
2022-04-17 18:57:17 +08:00
|
|
|
- image: Ubuntu2004
|
|
|
|
QTABI: mingw81_64
|
|
|
|
- image: Ubuntu2004
|
|
|
|
QTABI: msvc2019_64
|
|
|
|
- image: Ubuntu2004
|
|
|
|
QTABI: msvc2015_64
|
|
|
|
- image: Ubuntu2004
|
|
|
|
QTABI: msvc2015
|
|
|
|
- image: Ubuntu2004
|
|
|
|
QTABI: mingw53_32
|
2022-07-19 00:14:00 +08:00
|
|
|
- image: Ubuntu2004
|
|
|
|
QTABI: macos
|
|
|
|
- image: macos-monterey
|
|
|
|
QTABI: msvc2015_64
|
|
|
|
- image: macos-monterey
|
|
|
|
QTABI: msvc2015
|
|
|
|
- image: macos-monterey
|
|
|
|
QTABI: mingw53_32
|
|
|
|
- image: macos-monterey
|
|
|
|
QTABI: gcc_64
|
|
|
|
- image: macos-monterey
|
|
|
|
QTABI: mingw81_64
|
|
|
|
- image: macos-monterey
|
|
|
|
QTABI: msvc2019_64
|
2022-04-17 18:57:17 +08:00
|
|
|
|
2018-12-20 01:58:18 +08:00
|
|
|
|
2022-04-17 05:23:18 +08:00
|
|
|
for:
|
|
|
|
# Windows (MinGW 8.1 & MSVC2019)
|
2022-04-17 05:51:05 +08:00
|
|
|
-
|
|
|
|
matrix:
|
2022-04-17 05:23:18 +08:00
|
|
|
only:
|
2022-04-17 19:49:29 +08:00
|
|
|
- image: Visual Studio 2019
|
2022-04-17 05:23:18 +08:00
|
|
|
|
|
|
|
init:
|
|
|
|
- cmd: echo == INIT SYSTEM ENVIRONMENT ======================================================================
|
|
|
|
- cmd: echo NUMBER_OF_PROCESSORS=%NUMBER_OF_PROCESSORS%
|
|
|
|
- cmd: echo PROCESSOR_IDENTIFIER=%PROCESSOR_IDENTIFIER%
|
|
|
|
- cmd: echo APPVEYOR_BUILD_WORKER_IMAGE=%APPVEYOR_BUILD_WORKER_IMAGE%
|
|
|
|
- cmd: echo QTABI=%QTABI%
|
|
|
|
- cmd: echo CMAKE_GENERATOR=%CMAKE_GENERATOR%
|
|
|
|
- cmd: echo CMAKE_BUILDFLAGS=%CMAKE_BUILDFLAGS%
|
|
|
|
|
|
|
|
install:
|
|
|
|
# Init compiler environment
|
|
|
|
- cmd: echo == INIT COMPILER ENVIRONMENT ====================================================================
|
|
|
|
- cmd: set QTDIR=C:\Qt\%QTVER%\%QTABI%\bin
|
2022-07-06 04:03:37 +08:00
|
|
|
- cmd: set QT_DIR=C:\Qt\%QTVER%\%QTABI%\bin
|
2022-04-17 05:23:18 +08:00
|
|
|
- cmd: set PATH=%QTDIR%;%JOMDIR%;%PATH%
|
2022-04-17 05:51:05 +08:00
|
|
|
- cmd: if %COMPILER%==MinGW set "PATH=%MINGWDIR%\bin;%PATH%"
|
2022-04-17 05:23:18 +08:00
|
|
|
- cmd: if %QTABI%==msvc2019 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
|
|
|
|
- cmd: if %QTABI%==msvc2019_64 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
|
|
|
|
# Rename sh.exe as sh.exe in PATH interferes with MinGW
|
2022-04-17 05:51:05 +08:00
|
|
|
- cmd: if %COMPILER%==MinGW rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
|
2022-04-17 05:23:18 +08:00
|
|
|
- cmd: echo QTDIR=%QTDIR%
|
2022-07-06 04:03:37 +08:00
|
|
|
- cmd: echo QT_DIR=%QT_DIR%
|
2022-04-17 05:23:18 +08:00
|
|
|
- cmd: echo JOMDIR=%JOMDIR%
|
|
|
|
- cmd: echo PATH=%PATH%
|
|
|
|
# Install OpenCV
|
2022-04-17 19:49:29 +08:00
|
|
|
- cmd: echo == INSTALL OPENCV ===============================================================================
|
2022-04-17 05:23:18 +08:00
|
|
|
- cmd: choco install OpenCV
|
|
|
|
- cmd: set OPENCV_DIR=C:\tools\opencv\build
|
|
|
|
- cmd: echo OPENCV_DIR=%OPENCV_DIR%
|
2022-04-17 19:49:29 +08:00
|
|
|
# Install CImg
|
|
|
|
- cmd: echo == INSTALL CIMG =================================================================================
|
|
|
|
- cmd: mkdir C:\tools\cimg
|
|
|
|
- cmd: git clone --depth=1 https://github.com/dtschump/CImg.git C:\tools\cimg
|
|
|
|
- cmd: set CIMG_DIR=C:\tools\cimg
|
|
|
|
- cmd: echo CIMG_DIR=%CIMG_DIR%
|
|
|
|
- cmd: set CIMG_INCLUDE_DIR=C:\tools\cimg
|
|
|
|
- cmd: echo CIMG_INCLUDE_DIR=%CIMG_INCLUDE_DIR%
|
2022-04-17 05:23:18 +08:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- cmd: echo == BUILD JKQtPlotter ============================================================================
|
2022-04-17 05:51:05 +08:00
|
|
|
- cmd: mkdir build
|
|
|
|
- cmd: cd build
|
2022-04-17 19:49:29 +08:00
|
|
|
- cmd: if %USE_CMAKE%==true cmake --version
|
2022-04-18 20:01:17 +08:00
|
|
|
- cmd: if %USE_CMAKE%==true cmake -G "%CMAKE_GENERATOR%" "-DCMAKE_PREFIX_PATH=%QTDIR%;%CIMG_INCLUDE_DIR%" ..
|
2022-07-19 20:35:08 +08:00
|
|
|
- cmd: if %USE_CMAKE%==true cmake --build . --config "%CONFIGURATION%" -j%NUMBER_OF_PROCESSORS% -- %CMAKE_BUILDFLAGS%
|
2022-04-17 19:49:29 +08:00
|
|
|
- cmd: if %USE_CMAKE%==false qmake.exe -v
|
|
|
|
- cmd: if %USE_CMAKE%==false qmake.exe CONFIG+=%CONFIGURATION% ..\JKQtPlotterBuildAllExamples.pro
|
|
|
|
- cmd: if %USE_CMAKE%==false call %MAKETOOL%
|
2022-04-17 05:51:05 +08:00
|
|
|
- cmd: cd ..
|
2022-04-17 05:23:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-19 05:01:18 +08:00
|
|
|
# Linux (Ubuntu2004)
|
2022-04-17 05:51:05 +08:00
|
|
|
-
|
|
|
|
matrix:
|
2022-04-17 05:23:18 +08:00
|
|
|
only:
|
|
|
|
- image: Ubuntu2004
|
2022-07-19 05:01:18 +08:00
|
|
|
|
2022-04-17 05:23:18 +08:00
|
|
|
init:
|
|
|
|
- sh: echo == INIT SYSTEM ENVIRONMENT ======================================================================
|
|
|
|
- sh: echo _NPROCESSORS_ONLN=$(getconf _NPROCESSORS_ONLN)
|
2022-04-17 18:57:17 +08:00
|
|
|
- sh: echo APPVEYOR_BUILD_WORKER_IMAGE=$APPVEYOR_BUILD_WORKER_IMAGE
|
|
|
|
- sh: echo QTABI=$QTABI
|
|
|
|
- sh: echo CMAKE_GENERATOR=$CMAKE_GENERATOR
|
2022-04-17 05:23:18 +08:00
|
|
|
|
|
|
|
install:
|
|
|
|
# Init compiler environment
|
|
|
|
- sh: echo == INIT COMPILER ENVIRONMENT ====================================================================
|
2022-04-17 19:49:29 +08:00
|
|
|
- sh: export QTDIR=$HOME/Qt/$QTVER/$QTABI/
|
2022-07-06 04:03:37 +08:00
|
|
|
- sh: export QT_DIR=$HOME/Qt/$QTVER/$QTABI/
|
2022-04-17 19:49:29 +08:00
|
|
|
- sh: export Qt5_DIR=$QTDIR/lib/cmake
|
2022-04-17 05:23:18 +08:00
|
|
|
- sh: sudo apt update -qq
|
2022-04-17 19:49:29 +08:00
|
|
|
- sh: sudo apt install -y build-essential git graphviz doxygen mesa-common-dev libglu1-mesa-dev qt5-qmake cmake
|
2022-04-17 18:57:17 +08:00
|
|
|
- sh: echo QTDIR=$QTDIR
|
2022-07-06 04:03:37 +08:00
|
|
|
- sh: echo QT_DIR=$QT_DIR
|
2022-04-17 19:49:29 +08:00
|
|
|
- sh: echo Qt5_DIR=$Qt5_DIR
|
2022-04-17 18:57:17 +08:00
|
|
|
- sh: echo PATH=$PATH
|
2022-04-17 19:49:29 +08:00
|
|
|
- sh: sudo apt-get update -y
|
2022-04-17 05:23:18 +08:00
|
|
|
# Install OpenCV
|
2022-04-17 19:49:29 +08:00
|
|
|
- sh: echo == INSTALL OPENCV ===============================================================================
|
2022-04-17 18:57:17 +08:00
|
|
|
- sh: sudo apt install -y libopencv-dev
|
2022-04-17 19:49:29 +08:00
|
|
|
# Install CImg
|
2022-04-18 05:30:50 +08:00
|
|
|
#- sh: echo == INSTALL CImg =================================================================================
|
|
|
|
#- sh: sudo apt install -y cimg-dev
|
2018-12-20 01:58:18 +08:00
|
|
|
|
2022-04-17 05:23:18 +08:00
|
|
|
build_script:
|
|
|
|
- sh: echo == BUILD JKQtPlotter ============================================================================
|
|
|
|
- sh: mkdir build
|
|
|
|
- sh: cd build
|
2022-04-17 18:57:17 +08:00
|
|
|
- sh: echo --- Run CMake Configure -----------------------------------------------------------------------------
|
2022-04-17 19:49:29 +08:00
|
|
|
- sh: doxygen --version
|
2022-04-17 18:57:17 +08:00
|
|
|
- sh: cmake --version
|
2022-04-17 19:49:29 +08:00
|
|
|
- sh: cmake -G "$CMAKE_GENERATOR" "-DCMAKE_PREFIX_PATH=$QTDIR" ..
|
2022-04-17 18:57:17 +08:00
|
|
|
- sh: echo --- Build using CMake -------------------------------------------------------------------------------
|
2022-07-19 20:35:08 +08:00
|
|
|
- sh: cmake --build . --config "$CONFIGURATION" -j$(getconf _NPROCESSORS_ONLN) -- $CMAKE_BUILDFLAGS
|
2022-07-19 05:01:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# MacOS (Monterey)
|
|
|
|
-
|
|
|
|
matrix:
|
|
|
|
only:
|
|
|
|
- image: macos-monterey
|
|
|
|
|
|
|
|
init:
|
|
|
|
- sh: echo == INIT SYSTEM ENVIRONMENT ======================================================================
|
|
|
|
- sh: echo _NPROCESSORS_ONLN=$(getconf _NPROCESSORS_ONLN)
|
|
|
|
- sh: echo APPVEYOR_BUILD_WORKER_IMAGE=$APPVEYOR_BUILD_WORKER_IMAGE
|
|
|
|
- sh: echo QTABI=$QTABI
|
|
|
|
- sh: echo CMAKE_GENERATOR=$CMAKE_GENERATOR
|
|
|
|
|
|
|
|
install:
|
|
|
|
# Init compiler environment
|
|
|
|
- sh: echo == INIT COMPILER ENVIRONMENT ====================================================================
|
|
|
|
- sh: export QTDIR=$HOME/Qt/$QTVER/$QTABI/
|
|
|
|
- sh: export QT_DIR=$HOME/Qt/$QTVER/$QTABI/
|
|
|
|
- sh: export Qt5_DIR=$QTDIR/lib/cmake
|
|
|
|
- sh: echo QTDIR=$QTDIR
|
|
|
|
- sh: echo QT_DIR=$QT_DIR
|
|
|
|
- sh: echo Qt5_DIR=$Qt5_DIR
|
|
|
|
- sh: echo PATH=$PATH
|
|
|
|
# Install OpenCV
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- sh: echo == BUILD JKQtPlotter ============================================================================
|
|
|
|
- sh: mkdir build
|
|
|
|
- sh: cd build
|
|
|
|
- sh: echo --- Run CMake Configure -----------------------------------------------------------------------------
|
|
|
|
- sh: cmake --version
|
|
|
|
- sh: cmake -G "$CMAKE_GENERATOR" "-DCMAKE_PREFIX_PATH=$QTDIR" ..
|
|
|
|
- sh: echo --- Build using CMake -------------------------------------------------------------------------------
|
2022-07-19 20:35:08 +08:00
|
|
|
- sh: cmake --build . --config "$CONFIGURATION" -j$(getconf _NPROCESSORS_ONLN) -- $CMAKE_BUILDFLAGS
|