90 lines
2.4 KiB
YAML
90 lines
2.4 KiB
YAML
# Notes:
|
|
# - Minimal appveyor.yml file is an empty file. All sections are optional.
|
|
# - Indent each level of configuration with 2 spaces. Do not use tabs!
|
|
# - All section names are case-sensitive.
|
|
# - Section names should be unique on each level.
|
|
|
|
# branches to build
|
|
branches:
|
|
# blacklist
|
|
except:
|
|
- travis_mac_osx
|
|
# Do not build on tags (GitHub only)
|
|
skip_tags: true
|
|
|
|
#---------------------------------#
|
|
# environment configuration #
|
|
#---------------------------------#
|
|
|
|
environment:
|
|
DXSDK_DIR: "C:/Program Files (x86)/Microsoft DirectX SDK/"
|
|
GH_TOKEN:
|
|
secure: dYnBDQkiY5oVjIlswzBX9BJigNtBGXgGlp1tK3XbHzrDEDrs2vaKD5m+Oz5OSz1C
|
|
|
|
# scripts that run after cloning repository
|
|
install:
|
|
- powershell -Command "& {(new-object net.webclient).DownloadFile('https://bootstrap.pypa.io/get-pip.py', 'C:/get-pip.py')}"
|
|
- powershell -Command "& {C:/Python27/python.exe C:/get-pip.py}"
|
|
- "C:/Python27/Scripts/pip.exe install pyjavaproperties"
|
|
- "C:/Python27/Scripts/pip.exe install github3.py"
|
|
- git submodule update --init --recursive
|
|
- cd thirdparty/SDL2
|
|
# - git checkout release-2.0.3
|
|
- cd ../..
|
|
|
|
#---------------------------------#
|
|
# build configuration #
|
|
#---------------------------------#
|
|
|
|
# build Configuration, i.e. Debug, Release, etc.
|
|
configuration: Release
|
|
|
|
# scripts to run before build
|
|
before_build:
|
|
- echo Running cmake...
|
|
- mkdir build
|
|
- cd build
|
|
- cmake -Dbackend_sdl=ON ..
|
|
- cd ..
|
|
|
|
build:
|
|
project: build/wagic.sln # path to Visual Studio solution or project
|
|
|
|
#---------------------------------#
|
|
# tests configuration #
|
|
#---------------------------------#
|
|
|
|
# to disable automatic tests
|
|
test: off
|
|
|
|
|
|
#---------------------------------#
|
|
# artifacts configuration #
|
|
#---------------------------------#
|
|
|
|
artifacts:
|
|
# pushing windows package
|
|
- path: projects\mtg\bin\Wagic-windows*.zip
|
|
|
|
|
|
#---------------------------------#
|
|
# deployment configuration #
|
|
#---------------------------------#
|
|
|
|
# scripts to run before deployment
|
|
before_deploy:
|
|
- cd projects/mtg/bin
|
|
- "C:/Python27/python.exe createWindowsZip.py -b ../../../build"
|
|
- cd ../../..
|
|
|
|
# scripts to run after deployment
|
|
after_deploy:
|
|
|
|
# to run your custom scripts instead of provider deployments
|
|
deploy_script:
|
|
- "C:/Python27/python.exe tools/upload-binaries.py -t %GH_TOKEN% -s %APPVEYOR_REPO_COMMIT% -l projects/mtg/bin/Wagic-windows.zip -r Wagic-windows.zip -b %APPVEYOR_REPO_BRANCH%"
|
|
|
|
# to disable deployment
|
|
#deploy: off
|
|
|