ddnet/appveyor.yml
heinrich5991 36694d3852 Add a way to call for external moderator help
This is done by HTTP POSTing to a location specified by
`sv_modhelp_url`. We also provide a `src/modhelp/server.py` which can
use theses POSTs to forward them to Discord servers.

The POST contains a JSON object payload, with the keys `"port"` which
contains the server port, `"player_id"` which contains the calling
player's client ID, `"player_name"` which contains the calling player's
nick and `"message"` which is the user-specified message.

Make JSON-escaping function public, add tests and fix bugs uncovered by
these tests.

Supersedes #1129.
2018-06-19 23:27:35 +02:00

50 lines
1.1 KiB
YAML

image: Visual Studio 2015
before_build:
- cmd: |
git submodule update --init
md build32 & cd build32
cmake -Werror=dev -G "Visual Studio 14 2015" ..
cd ..
md build64 & cd build64
cmake -Werror=dev -G "Visual Studio 14 2015 Win64" ..
cd ..
build_script:
- cmd: cmake --build build32 --config Release --target everything
- cmd: cmake --build build64 --config Release --target everything
test_script:
- cmd: cmake --build build32 --config Debug --target run_tests
- cmd: cmake --build build64 --config Debug --target run_tests
- cmd: cmake --build build32 --config Release --target run_tests
- cmd: cmake --build build64 --config Release --target run_tests
- cmd: |
cd build32
Release\DDNet-Server shutdown
cd ..
- cmd: |
cd build64
Release\DDNet-Server shutdown
cd ..
after_build:
- cmd: cmake --build build32 --config Release --target package
- cmd: cmake --build build64 --config Release --target package
environment:
CFLAGS: /WX
CXXFLAGS: /WX
LDFLAGS: /WX
artifacts:
- path: build*/DDNet-*.zip
name: DDNet
branches:
except:
- staging.tmp
- testing.tmp