Skip to content

Commit

Permalink
test(build): add appveyor configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Insineer committed Sep 9, 2019
1 parent 1cd7c90 commit 0bf5e7d
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ addons:
- g++-9
env: CC=gcc-9 && CXX=g++-9
install:
- ./CI/install_dependencies.sh
- ./CI/travis/install_dependencies.sh
script:
- ./CI/build.sh
- ./CI/run_tests.sh
- ./CI/travis/build.sh
- ./CI/travis/run_tests.sh

cache:
directories:
Expand Down
34 changes: 34 additions & 0 deletions CI/appveyor/appveyor-debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
image: Visual Studio 2017

clone_folder: c:\projects\oss13
clone_depth: 10

matrix:
fast_finish: false

platform: x64
configuration: Debug

environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
TOOLCHAIN: msvc15

skip_commits:
files:
- GameLogic/*
- Resources/*

install:
- git submodule update --init --recursive

- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- vcpkg integrate install
- cd %APPVEYOR_BUILD_FOLDER%

- vcpkg install python3:x64-windows-static
- vcpkg install sfml:x64-windows-static
- vcpkg install gtest:x64-windows-static

cache: c:\tools\vcpkg\
55 changes: 55 additions & 0 deletions CI/appveyor/appveyor-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
image: Visual Studio 2017

clone_folder: c:\projects\oss13
clone_depth: 10

version: '0.0.{build}'

configuration: Release

environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
TOOLCHAIN: msvc15

branches:
only:
- never-build-branch-automatically-dont-use-this-name

platform:
- x64
- x86

matrix:
fast_finish: true

install:
- git submodule update --init --recursive

- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- vcpkg integrate install
- cd %APPVEYOR_BUILD_FOLDER%

- vcpkg install "python3:%platform%-windows-static"
- vcpkg install "sfml:%platform%-windows-static"
- vcpkg install "gtest:%platform%-windows-static"

cache: c:\tools\vcpkg\installed\

after_build:
- set BIN_FOLDER_SUFFIX=%platform%
- if "%BIN_FOLDER_SUFFIX%"=="x86" (set BIN_FOLDER_SUFFIX=Win32)

- 7z a "OSS13-%platform%-%appveyor_build_version%.zip" "%APPVEYOR_BUILD_FOLDER%\bin\Release-%BIN_FOLDER_SUFFIX%\OSS13 Client.exe" "%APPVEYOR_BUILD_FOLDER%\bin\Release-%BIN_FOLDER_SUFFIX%\OSS13 Server.exe" Resources -ir!GameLogic\*.py Arialuni.ttf LICENSE README.md UsersDB

artifacts:
- path: "OSS13-$(platform)-%appveyor_build_version%.zip"

deploy:
release: OSS13-v$(appveyor_build_version)
provider: GitHub
auth_token:
secure: ZcnounehZDOonSsgvbGJvqxU+3N+s8nY6TvkQldbw7OWOjWujaExqvYoHsqsapgf
force_update: true
artifacts: /.*\.zip
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0bf5e7d

Please sign in to comment.