1- #  Specify  version format
1+ #  specify  version format
22version : " {build}" 
33
44image :
55  - Visual Studio 2017 
66  - ubuntu1804 
7+   - macos 
78
89platform :
910  - x64 
@@ -17,105 +18,107 @@ configuration:
1718  - Debug 
1819  - Release 
1920
20- #  scripts that are called at very beginning, before repo cloning
21- init :
22-   # ------------------
23-   #  Windows 10
24-   # ------------------
25-   - cmd : ver 
26-   - cmd : cmake --version 
27-   - cmd : msbuild /version 
28- 
29-   # ------------------
30-   #  Ubuntu 18.04 LTS 
31-   # ------------------
32-   - sh : lsb_release -a 
33-   - sh : cmake --version 
34- 
3521#  branches to build
3622branches :
3723  #  blacklist
3824  except :
3925    - gh-pages 
4026
41- #  scripts that run after cloning repository 
42- install : 
27+ for : 
28+ - 
4329  # ------------------
4430  #  Windows 10
4531  # ------------------
46-   #  update vcpkg
47-   - cmd : cd C:\tools\vcpkg 
48-   - cmd : git pull 
49-   - cmd : .\bootstrap-vcpkg.bat 
50- 
51-   - cmd : if "%platform%"=="Win32" set VCPKG_ARCH=x86-windows 
52-   - cmd : if "%platform%"=="x64"   set VCPKG_ARCH=x64-windows 
53- 
54-   #  remove outdated versions
55-   - cmd : vcpkg remove --outdated --recurse 
56- 
57-   #  install required dependencies
58-   - cmd : vcpkg install --recurse --triplet %VCPKG_ARCH% zlib boost-iostreams boost-program-options boost-system boost-serialization eigen3 cgal[core] opencv 
59- 
60-   #  install optional dependencies
61-   - cmd : vcpkg install --recurse --triplet %VCPKG_ARCH% glew glfw3 
62- 
63-   - cmd : vcpkg integrate install 
64-   - cmd : cd "%APPVEYOR_BUILD_FOLDER%" 
65- 
66-   # ------------------
67-   #  Ubuntu 18.04 LTS 
68-   # ------------------
69-   - sh : sudo apt-get update -qq && sudo apt-get install -qq 
70-   - sh : sudo apt-get -y install build-essential git mercurial cmake libpng-dev libjpeg-dev libtiff-dev libglu1-mesa-dev libxmu-dev libxi-dev 
71-   - sh : sudo apt-get -y install libboost-iostreams-dev libboost-program-options-dev libboost-system-dev libboost-serialization-dev 
72-   - sh : sudo apt-get -y install libopencv-dev libcgal-dev libcgal-qt5-dev libatlas-base-dev 
73-   # - sh: sudo apt-get -y install libsuitesparse-dev libceres-dev
74-   - sh : sudo apt-get -y install freeglut3-dev libglew-dev libglfw3-dev 
75- 
76- #  preserve contents of selected directories and files across project builds
77- for :
78- -
7932  matrix :
8033    only :
8134      - image : Visual Studio 2017 
35+   #  scripts that are called at very beginning, before repo cloning
36+   init :
37+     - ver 
38+     - cmake --version 
39+     - msbuild /version 
40+   #  scripts that run after cloning repository
41+   install :
42+     #  update vcpkg
43+     - cd C:\tools\vcpkg 
44+     - git pull 
45+     - .\bootstrap-vcpkg.bat 
46+     - if "%platform%"=="Win32" set VCPKG_ARCH=x86-windows 
47+     - if "%platform%"=="x64"   set VCPKG_ARCH=x64-windows 
48+     #  remove outdated versions
49+     - vcpkg remove --outdated --recurse 
50+     #  install dependencies
51+     - vcpkg install --recurse --triplet %VCPKG_ARCH% zlib boost-iostreams boost-program-options boost-system boost-serialization eigen3 cgal[core] opencv glew glfw3 
52+     - vcpkg integrate install 
53+     - cd "%APPVEYOR_BUILD_FOLDER%" 
54+   #  preserve contents of selected directories and files across project builds
8255  cache :
8356    - ' C:\tools\vcpkg\installed' 
57+   build_script :
58+     - git clone https://github.com/cdcseacave/VCG.git 
59+     - if "%platform%"=="Win32" set CMAKE_GENERATOR=-G"Visual Studio 15 2017" 
60+     - if "%platform%"=="x64"   set CMAKE_GENERATOR=-G"Visual Studio 15 2017 Win64" 
61+     - mkdir bin && cd bin 
62+     - cmake %CMAKE_GENERATOR% -DCMAKE_BUILD_TYPE=%Configuration% -DCMAKE_TOOLCHAIN_FILE="C:\tools\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCG_ROOT="%APPVEYOR_BUILD_FOLDER%\VCG" .. 
63+     - cmake --build . --target ALL_BUILD --config %Configuration% -- /maxcpucount:4 
8464-
65+   # ------------------
66+   #  Ubuntu 18.04 LTS
67+   # ------------------
8568  matrix :
8669    only :
8770      - image : ubuntu1804 
71+   #  scripts that are called at very beginning, before repo cloning
72+   init :
73+     - lsb_release -a 
74+     - cmake --version 
75+     - gcc -v 
76+   #  scripts that run after cloning repository
77+   install :
78+     - sudo apt-get update -qq && sudo apt-get install -qq 
79+     - sudo apt-get -y install build-essential git cmake libpng-dev libjpeg-dev libtiff-dev libglu1-mesa-dev libxmu-dev libxi-dev 
80+     - sudo apt-get -y install libboost-iostreams-dev libboost-program-options-dev libboost-system-dev libboost-serialization-dev 
81+     - sudo apt-get -y install libopencv-dev libcgal-dev libcgal-qt5-dev libatlas-base-dev 
82+     - sudo apt-get -y install freeglut3-dev libglew-dev libglfw3-dev 
83+   #  preserve contents of selected directories and files across project builds
8884  cache :
8985    - ' /usr/lib/x86_64-linux-gnu/' 
90- 
91- build_script :
92-   #  get VCG library
93-   - git clone https://github.com/cdcseacave/VCG.git 
94- 
95-   # ------------------
96-   #  Windows 10
97-   # ------------------
98-   - cmd : if "%platform%"=="Win32" set CMAKE_GENERATOR=-G"Visual Studio 15 2017" 
99-   - cmd : if "%platform%"=="x64"   set CMAKE_GENERATOR=-G"Visual Studio 15 2017 Win64" 
100-   - cmd : mkdir bin && cd bin 
101-   - cmd : cmake %CMAKE_GENERATOR% -DCMAKE_BUILD_TYPE=%Configuration% -DCMAKE_TOOLCHAIN_FILE="C:\tools\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCG_ROOT="%APPVEYOR_BUILD_FOLDER%\VCG" .. 
102-   - cmd : cmake --build . --target ALL_BUILD --config %Configuration% -- /maxcpucount:4 
103- 
86+   build_script :
87+     - git clone https://github.com/cdcseacave/VCG.git 
88+     - git clone --single-branch --branch 3.2 https://gitlab.com/libeigen/eigen.git 
89+     - mkdir eigen_build && cd eigen_build 
90+     - cmake . ../eigen 
91+     - make && sudo make install 
92+     - cd .. 
93+     - mkdir bin && cd bin 
94+     - cmake -DCMAKE_BUILD_TYPE=$Configuration -DVCG_ROOT="$APPVEYOR_BUILD_FOLDER/VCG" .. 
95+     - make 
96+ -
10497  # ------------------
105-   #  Ubuntu 18.04 LTS 
98+   #  MacOS 
10699  # ------------------
107-   - sh : hg clone https://bitbucket.org/eigen/eigen#3.2 
108-   - sh : mkdir eigen_build && cd eigen_build 
109-   - sh : cmake . ../eigen 
110-   - sh : make && sudo make install 
111-   - sh : cd .. 
112-   - sh : mkdir bin && cd bin 
113-   - sh : cmake -DCMAKE_BUILD_TYPE=$Configuration -DVCG_ROOT="$APPVEYOR_BUILD_FOLDER/VCG" .. 
114-   - sh : make 
115- 
116- test_script :
117-   # - cmd: ctest --build-config %Configuration% --parallel 4 --output-on-failure
118-   # - sh: ctest -j4
100+   matrix :
101+     only :
102+       - image : macos 
103+   #  scripts that are called at very beginning, before repo cloning
104+   init :
105+     - system_profiler SPSoftwareDataType 
106+     - cmake --version 
107+     - gcc -v 
108+   #  scripts that run after cloning repository
109+   install :
110+     - brew update 
111+     - printf "#%s/bin/bash\nbrew install libomp boost eigen opencv cgal glew glfw3\nexit 0\n" "!" > install.sh 
112+     - chmod +x install.sh 
113+     - ./install.sh 
114+   #  preserve contents of selected directories and files across project builds
115+   cache :
116+     - ' /usr/local/Cellar/' 
117+   build_script :
118+     - git clone https://github.com/cdcseacave/VCG.git 
119+     - mkdir bin && cd bin 
120+     - cmake -DCMAKE_BUILD_TYPE=$CONFIGURATION -DVCG_ROOT="$APPVEYOR_BUILD_FOLDER/VCG" .. 
121+     - make 
119122
120123on_success :
121124  - cmd : 7z a OpenMVS_x64.7z "C:\projects\openmvs\bin\bin\vc15\x64\%Configuration%\*.exe" "C:\projects\openmvs\bin\bin\vc15\x64\%Configuration%\*.dll" 
0 commit comments