2019-01-07 09:08:05 -07:00
|
|
|
version: 1.7.0-dev-{build}
|
|
|
|
|
|
|
|
only_commits:
|
|
|
|
files:
|
|
|
|
- src/
|
|
|
|
- .appveyor.yml
|
2019-01-27 04:58:57 -07:00
|
|
|
- CMakeLists.txt
|
2019-01-07 09:08:05 -07:00
|
|
|
|
|
|
|
pull_requests:
|
|
|
|
do_not_increment_build_number: true
|
|
|
|
|
|
|
|
# Start builds on tags only (GitHub and BitBucket)
|
2019-01-13 12:44:47 -07:00
|
|
|
skip_non_tags: false
|
2019-01-07 09:08:05 -07:00
|
|
|
|
|
|
|
# Do not build feature branch with open Pull Requests
|
|
|
|
skip_branch_with_pr: true
|
|
|
|
|
2019-01-19 01:34:36 -07:00
|
|
|
# Even with `skip_branch_with_pr: true` appveyor builds that branch
|
|
|
|
# for the first time.
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2019-11-01 07:44:43 -06:00
|
|
|
artifacts:
|
|
|
|
- path: '**/celestia-*.exe'
|
|
|
|
name: win
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: BinTray
|
|
|
|
username: 375gnu
|
|
|
|
api_key:
|
|
|
|
secure: WjSIisk+6MMl82p8bvJPavyNhJIoDLnr3+d8Yj+Xo5EUb82aK7XNNhD50vh7/01q
|
|
|
|
subject: celestia
|
|
|
|
repo: celestia-builds
|
|
|
|
package: snapshots
|
|
|
|
# artifact: qt win
|
|
|
|
publish: true
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
|
2019-01-07 09:08:05 -07:00
|
|
|
# Build worker image (VM template)
|
2019-08-03 03:28:57 -06:00
|
|
|
image: "Previous Visual Studio 2015"
|
2019-01-07 09:08:05 -07:00
|
|
|
|
|
|
|
# clone directory
|
|
|
|
clone_folder: c:\projects\celestia
|
|
|
|
|
|
|
|
# set clone depth
|
|
|
|
clone_depth: 1
|
|
|
|
|
|
|
|
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
|
|
|
|
platform:
|
|
|
|
- x86
|
|
|
|
|
|
|
|
environment:
|
|
|
|
Qt5_DIR: 'C:\Qt\5.10\msvc2015'
|
|
|
|
PATH: '%Qt5_DIR%\bin;%PATH%'
|
|
|
|
|
|
|
|
# scripts that run after cloning repository
|
|
|
|
init:
|
|
|
|
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platform%
|
|
|
|
|
|
|
|
install:
|
|
|
|
- vcpkg install libpng:x86-windows
|
|
|
|
- vcpkg install gettext:x86-windows
|
|
|
|
- vcpkg install libjpeg-turbo:x86-windows
|
2019-05-26 14:44:49 -06:00
|
|
|
- vcpkg remove lua:x86-windows
|
|
|
|
- vcpkg install luajit:x86-windows
|
2019-01-07 09:08:05 -07:00
|
|
|
- vcpkg install fmt:x86-windows
|
|
|
|
- vcpkg install glew:x86-windows
|
|
|
|
- vcpkg install eigen3:x86-windows
|
|
|
|
- cd c:\tools\vcpkg
|
|
|
|
- vcpkg integrate install
|
|
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- cmd: >-
|
2019-01-27 04:58:57 -07:00
|
|
|
git submodule update --init
|
|
|
|
|
2019-01-07 09:08:05 -07:00
|
|
|
mkdir build
|
|
|
|
|
|
|
|
cd build
|
|
|
|
|
2019-05-05 06:12:43 -06:00
|
|
|
cmake -DCMAKE_PREFIX_PATH=%Qt5_DIR% -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DENABLE_SPICE=ON -DENABLE_TOOLS=ON ..
|
2019-01-07 09:08:05 -07:00
|
|
|
|
2019-01-13 12:44:47 -07:00
|
|
|
cmake --build . --config Release -- /maxcpucount:4 /nologo
|
2019-01-07 09:08:05 -07:00
|
|
|
|
2019-11-01 07:47:41 -06:00
|
|
|
#on_failure:
|
|
|
|
#- type "c:\projects\celestia\build\CMakeFiles\CMakeOutput.log"
|
|
|
|
#- type "c:\projects\celestia\build\CMakeFiles\CMakeError.log"
|
|
|
|
#- type "c:\projects\celestia\build\CMakeCache.txt"
|
2019-01-07 09:08:05 -07:00
|
|
|
|
|
|
|
# build cache to preserve files/folders between builds
|
|
|
|
cache: c:\tools\vcpkg\installed\
|