Browse Source

added appveyor script

Vladyslav Hrytsenko 6 years ago
parent
commit
a3ea3751f7
1 changed files with 31 additions and 0 deletions
  1. 31 0
      appveyor.yml

+ 31 - 0
appveyor.yml

@@ -0,0 +1,31 @@
+image: Visual Studio 2017
+
+platform:
+  - x64
+
+configuration:
+  - Release
+  - Debug
+
+before_build:
+  - cmake . -G "Visual Studio 15 2017 Win64" -DENET_SHARED=1 -DENET_TEST=1
+
+build:
+  project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln
+
+test_script:
+  - '%APPVEYOR_BUILD_FOLDER%\%CONFIGURATION%\enet_test.exe'
+
+artifacts:
+  - path: '%APPVEYOR_BUILD_FOLDER%\Release\*.dll'
+    name: Releases
+
+deploy:
+  provider: GitHub
+  auth_token:
+    secure: "tYm5oXMHHaO3oR5xd93zvnG95eqNZWw065Z9Qo6CAN3+2G7IlWbcmbsYlsl2XDFc"
+  artifact: /.*\.dll/
+  draft: false
+  prerelease: false
+  on:
+    appveyor_repo_tag: true